[PATCH] D55500: [Builtins] Implement __builtin_is_constant_evaluated for use in C++2a

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 23 21:56:27 PST 2019


EricWF updated this revision to Diff 183248.
EricWF marked 2 inline comments as done.
EricWF added a comment.

- Add or correct tests as requested.
- Fix code gen for initializers of reference types to correctly evaluate the initializer as a constant expression.


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

https://reviews.llvm.org/D55500

Files:
  include/clang/Basic/Builtins.def
  lib/AST/ExprConstant.cpp
  lib/Basic/Builtins.cpp
  lib/CodeGen/CGDecl.cpp
  test/CodeGenCXX/builtin-is-constant-evaluated.cpp
  test/Sema/builtins.c
  test/SemaCXX/builtin-is-constant-evaluated.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55500.183248.patch
Type: text/x-patch
Size: 13070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190124/0e13061e/attachment.bin>


More information about the cfe-commits mailing list