forked from OSchip/llvm-project
parent
fb442ae7b9
commit
0d42a41a63
|
@ -80,23 +80,13 @@ CodeGenFunction::EmitCXXExprWithTemporaries(const CXXExprWithTemporaries *E,
|
||||||
llvm::Value *AggLoc,
|
llvm::Value *AggLoc,
|
||||||
bool IsAggLocVolatile,
|
bool IsAggLocVolatile,
|
||||||
bool IsInitializer) {
|
bool IsInitializer) {
|
||||||
RValue RV;
|
RunCleanupsScope Scope(*this);
|
||||||
{
|
return EmitAnyExpr(E->getSubExpr(), AggLoc, IsAggLocVolatile,
|
||||||
RunCleanupsScope Scope(*this);
|
|
||||||
|
|
||||||
RV = EmitAnyExpr(E->getSubExpr(), AggLoc, IsAggLocVolatile,
|
|
||||||
/*IgnoreResult=*/false, IsInitializer);
|
/*IgnoreResult=*/false, IsInitializer);
|
||||||
}
|
|
||||||
return RV;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LValue CodeGenFunction::EmitCXXExprWithTemporariesLValue(
|
LValue CodeGenFunction::EmitCXXExprWithTemporariesLValue(
|
||||||
const CXXExprWithTemporaries *E) {
|
const CXXExprWithTemporaries *E) {
|
||||||
LValue LV;
|
RunCleanupsScope Scope(*this);
|
||||||
{
|
return EmitLValue(E->getSubExpr());
|
||||||
RunCleanupsScope Scope(*this);
|
|
||||||
|
|
||||||
LV = EmitLValue(E->getSubExpr());
|
|
||||||
}
|
|
||||||
return LV;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue