Code simplification.

llvm-svn: 108996
This commit is contained in:
John McCall 2010-07-21 06:45:54 +00:00
parent fb442ae7b9
commit 0d42a41a63
1 changed files with 4 additions and 14 deletions

View File

@ -80,23 +80,13 @@ CodeGenFunction::EmitCXXExprWithTemporaries(const CXXExprWithTemporaries *E,
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());
}