]> granicus.if.org Git - clang/commit
Unrevert r147271, reverted in r147361.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 30 Dec 2011 21:15:51 +0000 (21:15 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 30 Dec 2011 21:15:51 +0000 (21:15 +0000)
commit51201882382fb40c9456a06c7f93d6ddd4a57712
tree2b485b2651f5385cda9709b77582bf4320e3569f
parentbf3cc73db94f2fbeb57929887bd05d5a0e077f0c
Unrevert r147271, reverted in r147361.

Also temporarily remove the assumption from IR gen that we can emit IR for every
constant we can fold, since it isn't currently true in C++11, to fix PR11676.

Original comment from r147271:

constexpr: perform zero-initialization prior to / instead of performing a
constructor call when appropriate. Thanks to Eli for spotting this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147384 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
lib/AST/Type.cpp
lib/CodeGen/CGDecl.cpp
test/CXX/expr/expr.const/p2-0x.cpp
test/CXX/special/class.ctor/p6-0x.cpp
test/CodeGenCXX/value-init.cpp
test/SemaCXX/constexpr-printing.cpp
test/SemaCXX/constexpr-value-init.cpp [new file with mode: 0644]
test/SemaObjCXX/arc-type-traits.mm