Another silly workaround for MSVC.

llvm-svn: 145227
This commit is contained in:
Peter Collingbourne 2011-11-28 04:29:10 +00:00
parent 129d12c00c
commit eec0a2aa87

View File

@ -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);
}