From: Jonghyun Park Date: Mon, 20 Feb 2017 05:38:40 +0000 (+0900) Subject: Rewrite assert using bbInTryRegions X-Git-Tag: submit/tizen/20210909.063632~11030^2~8018^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51956b926ac0ee1e43b051a4059b28a04f8f1829;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Rewrite assert using bbInTryRegions Commit migrated from https://github.com/dotnet/coreclr/commit/401f6422475c54c78b57de7509333b1c529bfb9b --- diff --git a/src/coreclr/src/jit/flowgraph.cpp b/src/coreclr/src/jit/flowgraph.cpp index e143970..97570c4 100644 --- a/src/coreclr/src/jit/flowgraph.cpp +++ b/src/coreclr/src/jit/flowgraph.cpp @@ -23286,8 +23286,7 @@ void Compiler::fgCloneFinally() BasicBlock* const firstTryBlock = HBtab->ebdTryBeg; BasicBlock* const lastTryBlock = HBtab->ebdTryLast; assert(firstTryBlock->getTryIndex() == XTnum); - // TODO: rewrite the following assert to support nested try blocks - // assert(lastTryBlock->getTryIndex() == XTnum); + assert(bbInTryRegions(XTnum, lastTryBlock)); BasicBlock* const beforeTryBlock = firstTryBlock->bbPrev; BasicBlock* normalCallFinallyBlock = nullptr;