diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-06 01:28:58 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-05-06 01:28:58 +0000 |
commit | ed363c5dcb3838ee1078cc74605710322a78514c (patch) | |
tree | 097c3be9a0ed0353d27501c3e73fb479def631c9 /llvm/lib/CodeGen | |
parent | f9c4c424aca0d87f6b87054a1bd374ff189e5ab4 (diff) | |
download | bcm5719-llvm-ed363c5dcb3838ee1078cc74605710322a78514c.tar.gz bcm5719-llvm-ed363c5dcb3838ee1078cc74605710322a78514c.zip |
[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
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/WinEHPrepare.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp index db91c02ee46..2c72a556f75 100644 --- a/llvm/lib/CodeGen/WinEHPrepare.cpp +++ b/llvm/lib/CodeGen/WinEHPrepare.cpp @@ -934,6 +934,7 @@ bool WinEHPrepare::prepareExceptionHandlers( CleanupHandlerMap.clear(); HandlerToParentFP.clear(); DT = nullptr; + SEHExceptionCodeSlot = nullptr; return HandlersOutlined; } |