diff options
Diffstat (limited to 'src/jit/gentree.cpp')
-rw-r--r-- | src/jit/gentree.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp index b7d63850e4..4654350962 100644 --- a/src/jit/gentree.cpp +++ b/src/jit/gentree.cpp @@ -11597,9 +11597,13 @@ BasicBlock* BasicBlock::GetSucc(unsigned i, Compiler * comp) unreached(); // Should have been covered by assert above. case BBJ_EHFILTERRET: + { assert(comp != NULL); // Or else we're not looking for successors. + BasicBlock* result = comp->fgFirstBlockOfHandler(this); + noway_assert(result == bbJumpDest); // Handler is the (sole) normal successor of the filter. - return comp->fgFirstBlockOfHandler(this); + return result; + } case BBJ_EHFINALLYRET: return comp->fgSuccOfFinallyRet(this, i); |