summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGTemporaries.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-15 20:51:39 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-15 20:51:39 +0000
commit6e997b2993d77e125f658908246eede2a69f9bff (patch)
tree24b8b6044d8e725ad31bc936a07b3623443392c3 /clang/lib/CodeGen/CGTemporaries.cpp
parent1316249ad27415215de7764f7796bb20a72345e6 (diff)
downloadbcm5719-llvm-6e997b2993d77e125f658908246eede2a69f9bff.tar.gz
bcm5719-llvm-6e997b2993d77e125f658908246eede2a69f9bff.zip
ShouldDestroyTemporaries? I don't think so.
llvm-svn: 91450
Diffstat (limited to 'clang/lib/CodeGen/CGTemporaries.cpp')
-rw-r--r--clang/lib/CodeGen/CGTemporaries.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/CodeGen/CGTemporaries.cpp b/clang/lib/CodeGen/CGTemporaries.cpp
index 5cfc7efade4..884c21230ad 100644
--- a/clang/lib/CodeGen/CGTemporaries.cpp
+++ b/clang/lib/CodeGen/CGTemporaries.cpp
@@ -92,12 +92,6 @@ CodeGenFunction::EmitCXXExprWithTemporaries(const CXXExprWithTemporaries *E,
llvm::Value *AggLoc,
bool IsAggLocVolatile,
bool IsInitializer) {
- // If we shouldn't destroy the temporaries, just emit the
- // child expression.
- if (!E->shouldDestroyTemporaries())
- return EmitAnyExpr(E->getSubExpr(), AggLoc, IsAggLocVolatile,
- /*IgnoreResult=*/false, IsInitializer);
-
// Keep track of the current cleanup stack depth.
size_t CleanupStackDepth = CleanupEntries.size();
(void) CleanupStackDepth;
@@ -119,11 +113,6 @@ CodeGenFunction::EmitCXXExprWithTemporaries(const CXXExprWithTemporaries *E,
LValue CodeGenFunction::EmitCXXExprWithTemporariesLValue(
const CXXExprWithTemporaries *E) {
- // If we shouldn't destroy the temporaries, just emit the
- // child expression.
- if (!E->shouldDestroyTemporaries())
- return EmitLValue(E->getSubExpr());
-
// Keep track of the current cleanup stack depth.
size_t CleanupStackDepth = CleanupEntries.size();
(void) CleanupStackDepth;
OpenPOWER on IntegriCloud