[cfe-commits] r108996 - /cfe/trunk/lib/CodeGen/CGTemporaries.cpp
John McCall
rjmccall at apple.com
Tue Jul 20 23:45:54 PDT 2010
Author: rjmccall
Date: Wed Jul 21 01:45:54 2010
New Revision: 108996
URL: http://llvm.org/viewvc/llvm-project?rev=108996&view=rev
Log:
Code simplification.
Modified:
cfe/trunk/lib/CodeGen/CGTemporaries.cpp
Modified: cfe/trunk/lib/CodeGen/CGTemporaries.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGTemporaries.cpp?rev=108996&r1=108995&r2=108996&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGTemporaries.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGTemporaries.cpp Wed Jul 21 01:45:54 2010
@@ -80,23 +80,13 @@
llvm::Value *AggLoc,
bool IsAggLocVolatile,
bool IsInitializer) {
- RValue RV;
- {
- RunCleanupsScope Scope(*this);
-
- RV = EmitAnyExpr(E->getSubExpr(), AggLoc, IsAggLocVolatile,
+ RunCleanupsScope Scope(*this);
+ return EmitAnyExpr(E->getSubExpr(), AggLoc, IsAggLocVolatile,
/*IgnoreResult=*/false, IsInitializer);
- }
- return RV;
}
LValue CodeGenFunction::EmitCXXExprWithTemporariesLValue(
const CXXExprWithTemporaries *E) {
- LValue LV;
- {
- RunCleanupsScope Scope(*this);
-
- LV = EmitLValue(E->getSubExpr());
- }
- return LV;
+ RunCleanupsScope Scope(*this);
+ return EmitLValue(E->getSubExpr());
}
More information about the cfe-commits
mailing list