diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-28 04:29:10 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-28 04:29:10 +0000 |
| commit | eec0a2aa87344cff89a3d0768a09d5459cb9b7c8 (patch) | |
| tree | b7cc9066308348ced68c9033d6c8e5ff2600956d /clang/lib/CodeGen | |
| parent | 129d12c00c531371842ae37e7ddba622629fb526 (diff) | |
| download | bcm5719-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.cpp | 4 |
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); } |

