[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.

llvm-svn: 236561
This commit is contained in:
Ahmed Bougacha 2015-05-06 01:28:58 +00:00
parent f9c4c424ac
commit ed363c5dcb
1 changed files with 1 additions and 0 deletions

View File

@ -934,6 +934,7 @@ bool WinEHPrepare::prepareExceptionHandlers(
CleanupHandlerMap.clear();
HandlerToParentFP.clear();
DT = nullptr;
SEHExceptionCodeSlot = nullptr;
return HandlersOutlined;
}