git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235791
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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.