[PATCH] D158061: [clang] Construct ExprRequirement with SubstitutionDiagnostic on SubstFailure
Younan Zhang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 16 06:00:54 PDT 2023
zyounan added inline comments.
================
Comment at: clang/lib/Sema/SemaExprCXX.cpp:9079
+ auto *IDC = TC->getImmediatelyDeclaredConstraint();
+ assert(IDC && "ImmediatelyDeclaredConstraint can't be null here.");
+ ExprResult Constraint = SubstExpr(IDC, MLTAL);
----------------
I'm adding another assertion here following up on D157554: If IDC is nullptr somehow, we will fall into the cast statement in the else block and crash anyway.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158061/new/
https://reviews.llvm.org/D158061
More information about the cfe-commits
mailing list