diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-27 07:40:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-27 07:40:06 +0000 |
commit | fbe02ffb573ac2aa51351278af1c7970573b6ed5 (patch) | |
tree | 43eac7067b518ddf1752d9926254124a93e0c1f7 /lib/CodeGen/CGExprAgg.cpp | |
parent | 77b89b87c3b9220fea1bc80f6d6598d2003cc8a8 (diff) |
misc tidying
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 9d044fff77..84d1952d40 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -539,10 +539,8 @@ void AggExprEmitter::VisitCXXConstructExpr(const CXXConstructExpr *E) { llvm::Value *Val = DestPtr; - if (!Val) { - // Create a temporary variable. + if (!Val) // Create a temporary variable. Val = CGF.CreateMemTemp(E->getType(), "tmp"); - } if (E->requiresZeroInitialization()) EmitNullInitializationToLValue(LValue::MakeAddr(Val, |