diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-20 23:29:04 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-20 23:29:04 +0000 |
commit | 48620bafe4ba879f96c2d17caefeb79f3fae2eea (patch) | |
tree | fa5e799ee50437137a9aea09756a85ce808e4f93 /lib/CodeGen/CGCXX.cpp | |
parent | 705348544cdf9db2b88ebfa60966b62a5be1f3f1 (diff) |
Code-gen for CXXZeroInitValueExpr AST passed
as argument to a function call. Removes a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 44e5207e53..cfa669dc4b 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -566,10 +566,6 @@ CodeGenFunction::EmitCXXConstructorCall(const CXXConstructorDecl *D, assert(!ClassDecl->hasUserDeclaredCopyConstructor() && "EmitCXXConstructorCall - user declared copy constructor"); const Expr *E = (*ArgBeg); - // FIXME. This may not be correct. But till now, we were skipping - // code gen of trivial copy constructors regardless of their arguments. - if (isa<CXXZeroInitValueExpr>(E)) - return; QualType Ty = E->getType(); llvm::Value *Src = EmitLValue(E).getAddress(); EmitAggregateCopy(This, Src, Ty); |