[WinEH] Reset WinEHPrepare::SEHExceptionCodeSlot when we're done.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 6 May 2015 01:28:58 +0000 (01:28 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 6 May 2015 01:28:58 +0000 (01:28 +0000)
commitd3a9dd70429239093b136e178147ec0425dab269
tree7049e0f1e6174f2a8c5ad3fc3645e63bc497f65f
parent730ddb6f577299adff0b5a6a5cdf09ae4f235ac9
[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
lib/CodeGen/WinEHPrepare.cpp