summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.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/CGExpr.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/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index de2c2744d5..da3f79e83a 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -1213,7 +1213,7 @@ LValue
CodeGenFunction::EmitCXXBindTemporaryLValue(const CXXBindTemporaryExpr *E) {
LValue LV = EmitLValue(E->getSubExpr());
- // FIXME: Record the value and dest ptr.
+ PushCXXTemporary(E->getTemporary(), LV.getAddress());
return LV;
}