mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 19:32:35 +00:00
Another silly workaround for MSVC.
llvm-svn: 145227
This commit is contained in:
parent
129d12c00c
commit
eec0a2aa87
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user