aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCleanup.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-11-28 00:41:08 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-11-28 00:41:08 +0000
commit567f02f3b81b5f16b990bae0640d77022d46c922 (patch)
tree25ce4dab9fb9eaf435cc6aebe78e177033601295 /lib/CodeGen/CGCleanup.cpp
parent6d7d16d45c1d601483e46a77bd2fa1d199219721 (diff)
Sigh, another workaround for MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145211 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCleanup.cpp')
-rw-r--r--lib/CodeGen/CGCleanup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGCleanup.cpp b/lib/CodeGen/CGCleanup.cpp
index f09ba72bbc..c3eb2c67bc 100644
--- a/lib/CodeGen/CGCleanup.cpp
+++ b/lib/CodeGen/CGCleanup.cpp
@@ -1099,6 +1099,6 @@ llvm::Value *CodeGenFunction::getNormalCleanupDestSlot() {
void CodeGenFunction::EmitCXXTemporary(const CXXTemporary *Temporary,
QualType TempType,
llvm::Value *Ptr) {
- pushDestroy(NormalAndEHCleanup, Ptr, TempType, *destroyCXXObject,
+ pushDestroy(NormalAndEHCleanup, Ptr, TempType, *&destroyCXXObject,
/*useEHCleanup*/ true);
}