diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-30 21:15:51 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-12-30 21:15:51 +0000 |
commit | 51201882382fb40c9456a06c7f93d6ddd4a57712 (patch) | |
tree | 2b485b2651f5385cda9709b77582bf4320e3569f /test/CodeGenCXX/value-init.cpp | |
parent | bf3cc73db94f2fbeb57929887bd05d5a0e077f0c (diff) |
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
Diffstat (limited to 'test/CodeGenCXX/value-init.cpp')
-rw-r--r-- | test/CodeGenCXX/value-init.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGenCXX/value-init.cpp b/test/CodeGenCXX/value-init.cpp index fb981d1ff7..6e60f80110 100644 --- a/test/CodeGenCXX/value-init.cpp +++ b/test/CodeGenCXX/value-init.cpp @@ -134,8 +134,7 @@ namespace zeroinit { // CHECK: define i32 @_ZN8zeroinit4testEv() int test() { // CHECK: call void @llvm.memset.p0i8.i64 - // CHECK: getelementptr - // CHECK: ret i32 + // CHECK: ret i32 0 return S().i; } |