From 51956b926ac0ee1e43b051a4059b28a04f8f1829 Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Mon, 20 Feb 2017 14:38:40 +0900 Subject: [PATCH] Rewrite assert using bbInTryRegions Commit migrated from https://github.com/dotnet/coreclr/commit/401f6422475c54c78b57de7509333b1c529bfb9b --- src/coreclr/src/jit/flowgraph.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.7.4