[clang] [clang] Add invalid check in NormalizedConstraint::fromConstraintExpr. (PR #86943)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 28 10:54:26 PDT 2024
================
@@ -1356,6 +1356,8 @@ NormalizedConstraint::fromConstraintExpr(Sema &S, NamedDecl *D, const Expr *E) {
S, CSE->getExprLoc(),
Sema::InstantiatingTemplate::ConstraintNormalization{}, D,
CSE->getSourceRange());
+ if (Inst.isInvalid())
+ return std::nullptr;
----------------
hokein wrote:
good catch!
https://github.com/llvm/llvm-project/pull/86943
More information about the cfe-commits
mailing list