[PATCH] D84140: [clang] Set the error-bit for ill-formed semantic InitListExpr.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 20 01:03:36 PDT 2020
sammccall added inline comments.
================
Comment at: clang/include/clang/AST/Expr.h:4697
+ assert(isSemanticForm());
+ setDependence(getDependence() | ExprDependence::Error |
+ ExprDependence::ValueInstantiation);
----------------
Hmm, actually hardcoding the error->VI relationship seems like a smell here...
I'm not sure what the best fix is though, any ideas?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84140/new/
https://reviews.llvm.org/D84140
More information about the cfe-commits
mailing list