mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
[WinEH] Reset WinEHPrepare::SEHExceptionCodeSlot when we're done.
This caused a use-after-free on test/CodeGen/X86/win32-eh.ll No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236561 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
730ddb6f57
commit
d3a9dd7042
@ -934,6 +934,7 @@ bool WinEHPrepare::prepareExceptionHandlers(
|
|||||||
CleanupHandlerMap.clear();
|
CleanupHandlerMap.clear();
|
||||||
HandlerToParentFP.clear();
|
HandlerToParentFP.clear();
|
||||||
DT = nullptr;
|
DT = nullptr;
|
||||||
|
SEHExceptionCodeSlot = nullptr;
|
||||||
|
|
||||||
return HandlersOutlined;
|
return HandlersOutlined;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user