From: Ahmed Bougacha Date: Wed, 6 May 2015 01:28:58 +0000 (+0000) Subject: [WinEH] Reset WinEHPrepare::SEHExceptionCodeSlot when we're done. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d3a9dd70429239093b136e178147ec0425dab269;p=oota-llvm.git [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 --- diff --git a/lib/CodeGen/WinEHPrepare.cpp b/lib/CodeGen/WinEHPrepare.cpp index db91c02ee46..2c72a556f75 100644 --- a/lib/CodeGen/WinEHPrepare.cpp +++ b/lib/CodeGen/WinEHPrepare.cpp @@ -934,6 +934,7 @@ bool WinEHPrepare::prepareExceptionHandlers( CleanupHandlerMap.clear(); HandlerToParentFP.clear(); DT = nullptr; + SEHExceptionCodeSlot = nullptr; return HandlersOutlined; }