[clang] [Clang] Guard against null in template instantiation process (PR #97913)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 15 09:35:01 PDT 2024
================
@@ -636,6 +636,9 @@ bool Sema::SetupConstraintScope(
? FD->getInstantiatedFromMemberFunction()
: FD->getInstantiatedFromDecl();
+ if (!InstantiatedFrom)
+ return true;
+
----------------
smanna12 wrote:
Thank you @zyn0217 for the reviews and clarification. Closing this as Not a defect.
https://github.com/llvm/llvm-project/pull/97913
More information about the cfe-commits
mailing list