Skip to content

Commit

Permalink
Fix #4496
Browse files Browse the repository at this point in the history
This commit revises legecy codegen to inserts a bkpt instruction if the current BB
and next BB is not in the same exception handling region.

This code is backported from ARM64 codegen.
  • Loading branch information
parjong authored and chunseoklee committed Apr 26, 2016
1 parent 13b8466 commit 7dc148d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jit/codegenlegacy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13243,6 +13243,9 @@ void CodeGen::genCodeForBBlist()
#if FEATURE_EH_FUNCLETS
|| (block->bbNext->bbFlags & BBF_FUNCLET_BEG)
#endif // FEATURE_EH_FUNCLETS
#if defined(_TARGET_ARM_)
|| !BasicBlock::sameEHRegion(block, block->bbNext)
#endif
|| (!isFramePointerUsed() && compiler->fgIsThrowHlpBlk(block->bbNext))
|| block->bbNext == compiler->fgFirstColdBlock
)
Expand Down

0 comments on commit 7dc148d

Please sign in to comment.