[PATCH] D84637: [AST] Enhance the const expression evaluator to support error-dependent exprs.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 4 07:19:33 PDT 2020


hokein updated this revision to Diff 282916.
hokein added a comment.

address review comments:

- treat contains-errors expression as being potentially constant;
- handle the value-dependent expressions for EvaluateInPlace;
- remove the bailing out for constructor initializers that contains errors;


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84637/new/

https://reviews.llvm.org/D84637

Files:
  clang/lib/AST/ExprConstant.cpp
  clang/test/SemaCXX/constexpr-function-recovery-crash.cpp
  clang/test/SemaCXX/enable_if.cpp
  clang/test/SemaCXX/invalid-constructor-init.cpp
  clang/test/SemaCXX/recovery-expr-type.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84637.282916.patch
Type: text/x-patch
Size: 19009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200804/27af7823/attachment-0001.bin>


More information about the cfe-commits mailing list