mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-01 16:59:14 +00:00
[WinEH] Find correct cloned entry block for outlined handler functions.
llvm-svn: 235791
This commit is contained in:
parent
19baec58e1
commit
24fdb26f91
@ -1723,7 +1723,8 @@ void WinEHPrepare::mapLandingPadBlocks(LandingPadInst *LPad,
|
||||
// exceptions but code called from catches can. For SEH, it isn't
|
||||
// important if some finally code before a catch-all is executed out of
|
||||
// line or after recovering from the exception.
|
||||
if (Personality == EHPersonality::MSVC_CXX)
|
||||
if (Personality == EHPersonality::MSVC_CXX && LPad->isCleanup() &&
|
||||
!Actions->includesCleanup())
|
||||
findCleanupHandlers(Actions, BB, BB);
|
||||
|
||||
// Add the catch handler to the action list.
|
||||
|
Loading…
x
Reference in New Issue
Block a user