[PATCH] D53921: Compound literals and enums require constant inits
Bill Wendling via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 31 01:28:06 PDT 2018
void created this revision.
void added a reviewer: rsmith.
Herald added a subscriber: cfe-commits.
Both compound literals and enums require their initializers to be
constant. Wrap the initializer expressions in a ConstantExpr so that we
can easily check for this later on.
Repository:
rC Clang
https://reviews.llvm.org/D53921
Files:
lib/ARCMigrate/ObjCMT.cpp
lib/AST/ASTImporter.cpp
lib/AST/ExprConstant.cpp
lib/Analysis/CFG.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaInit.cpp
lib/StaticAnalyzer/Core/Environment.cpp
lib/StaticAnalyzer/Core/ExprEngine.cpp
test/Misc/ast-dump-decl.c
test/SemaCXX/compound-literal.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53921.171868.patch
Type: text/x-patch
Size: 14946 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181031/d79980dc/attachment.bin>
More information about the cfe-commits
mailing list