projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9c4c42
)
[WinEH] Reset WinEHPrepare::SEHExceptionCodeSlot when we're done.
author
Ahmed Bougacha
<ahmed.bougacha@gmail.com>
Wed, 6 May 2015 01:28:58 +0000
(
01:28
+0000)
committer
Ahmed Bougacha
<ahmed.bougacha@gmail.com>
Wed, 6 May 2015 01:28:58 +0000
(
01:28
+0000)
This caused a use-after-free on test/CodeGen/X86/win32-eh.ll
No functional change intended.
llvm-svn: 236561
llvm/lib/CodeGen/WinEHPrepare.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/WinEHPrepare.cpp
b/llvm/lib/CodeGen/WinEHPrepare.cpp
index
db91c02
..
2c72a55
100644
(file)
--- 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;
}