summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-31 00:34:10 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-31 00:34:10 +0000
commit543ac0c4d24a81fb2b7b6e83370aa8e4cbc93054 (patch)
tree5bdeef74f184f028149496898a055099717e1244 /lib/CodeGen/CGExprAgg.cpp
parenteb6437a9b23b3d98a4590ba5557111e14eba2edf (diff)
downloadclang-543ac0c4d24a81fb2b7b6e83370aa8e4cbc93054.tar.gz
clang-543ac0c4d24a81fb2b7b6e83370aa8e4cbc93054.tar.bz2
clang-543ac0c4d24a81fb2b7b6e83370aa8e4cbc93054.tar.xz
Emit destructors correctly for temporaries.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp
index 140ecc4aca..469c8306b9 100644
--- a/lib/CodeGen/CGExprAgg.cpp
+++ b/lib/CodeGen/CGExprAgg.cpp
@@ -303,7 +303,7 @@ void AggExprEmitter::VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *E) {
} else
Visit(E->getSubExpr());
- // FIXME: Record the value and dest ptr.
+ CGF.PushCXXTemporary(E->getTemporary(), Val);
}
void