diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-07 22:35:13 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-07 22:35:13 +0000 |
commit | 63ef464c3fad1e8b9f9360baa6c81f974b712e90 (patch) | |
tree | 3809b571133d9e4388993f282855661001978e9d /test/CodeGenCXX/default-arg-temps.cpp | |
parent | 3e31552aed7c6e9c915bbc8d457ec84bb4a8d7e9 (diff) |
Do not use CXXZeroValueInitExpr for class types. Instead, use
CXXConstructExpr/CXXTemporaryObjectExpr/CXXNewExpr as
appropriate. Fixes PR7556, and provides a slide codegen improvement
when copy-initializing a POD class type from a value-initialized
temporary. Previously, we weren't eliding the copy.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/default-arg-temps.cpp')
-rw-r--r-- | test/CodeGenCXX/default-arg-temps.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/CodeGenCXX/default-arg-temps.cpp b/test/CodeGenCXX/default-arg-temps.cpp index e4a06770cd..c4419850f1 100644 --- a/test/CodeGenCXX/default-arg-temps.cpp +++ b/test/CodeGenCXX/default-arg-temps.cpp @@ -44,7 +44,6 @@ class obj{ int a; float b; double d; }; // CHECK: define void @_Z1hv() void h() { // CHECK: call void @llvm.memset.p0i8.i64( - // CHECK: call void @llvm.memcpy.p0i8.p0i8.i64( obj o = obj(); } |