summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-27 07:40:06 +0000
committerChris Lattner <sabre@nondot.org>2010-06-27 07:40:06 +0000
commit818efb64a346c7fec250498d028d25331f1bd766 (patch)
tree1d6099d6789554f98c9a6e4a539bbc4aeb0b1f3a
parent5e016ae983e1ddc24fca7a04d8399cbd673707c2 (diff)
downloadbcm5719-llvm-818efb64a346c7fec250498d028d25331f1bd766.tar.gz
bcm5719-llvm-818efb64a346c7fec250498d028d25331f1bd766.zip
misc tidying
llvm-svn: 106978
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp4
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp3
2 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 9d044fff77f..84d1952d409 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/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,
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 319144e89dd..6df3af2b981 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -648,9 +648,8 @@ llvm::Value *CodeGenFunction::EmitVLASize(QualType Ty) {
}
llvm::Value* CodeGenFunction::EmitVAListRef(const Expr* E) {
- if (CGM.getContext().getBuiltinVaListType()->isArrayType()) {
+ if (CGM.getContext().getBuiltinVaListType()->isArrayType())
return EmitScalarExpr(E);
- }
return EmitLValue(E).getAddress();
}
OpenPOWER on IntegriCloud