[NFC] Make sure we check an optional when checking function constraints
authorErich Keane <erich.keane@intel.com>
Fri, 21 Oct 2022 14:31:26 +0000 (07:31 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 21 Oct 2022 14:32:57 +0000 (07:32 -0700)
commita726be38756bf65dbe15912e779f0813fe5af01e
tree101b95ef0785adf99f8fd2a44f2bdf8f0d9c8ba6
parent87549e61dae5c1cbb8ef590058aa93053ded481d
[NFC] Make sure we check an optional when checking function constraints

For some reason the initial deferred concepts patch didn't add this
check, which someone noticed could cause a problem with other patches
applied.  This makes sure we check these, so that an error condition
cannot cause us to crash.
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaConcept.cpp