summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-11-28 04:29:10 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-11-28 04:29:10 +0000
commiteec0a2aa87344cff89a3d0768a09d5459cb9b7c8 (patch)
treeb7cc9066308348ced68c9033d6c8e5ff2600956d /clang/lib/CodeGen
parent129d12c00c531371842ae37e7ddba622629fb526 (diff)
downloadbcm5719-llvm-eec0a2aa87344cff89a3d0768a09d5459cb9b7c8.tar.gz
bcm5719-llvm-eec0a2aa87344cff89a3d0768a09d5459cb9b7c8.zip
Another silly workaround for MSVC.
llvm-svn: 145227
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index c3eb2c67bc8..308409dbb63 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -1099,6 +1099,8 @@ llvm::Value *CodeGenFunction::getNormalCleanupDestSlot() {
void CodeGenFunction::EmitCXXTemporary(const CXXTemporary *Temporary,
QualType TempType,
llvm::Value *Ptr) {
- pushDestroy(NormalAndEHCleanup, Ptr, TempType, *&destroyCXXObject,
+ // This local is a GCC and MSVC compiler workaround.
+ Destroyer *destroyer = &destroyCXXObject;
+ pushDestroy(NormalAndEHCleanup, Ptr, TempType, *destroyer,
/*useEHCleanup*/ true);
}
OpenPOWER on IntegriCloud