projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
748f02c
)
Rewrite assert using bbInTryRegions
author
Jonghyun Park
<parjong@gmail.com>
Mon, 20 Feb 2017 05:38:40 +0000
(14:38 +0900)
committer
Jonghyun Park
<parjong@gmail.com>
Mon, 20 Feb 2017 05:38:40 +0000
(14:38 +0900)
Commit migrated from https://github.com/dotnet/coreclr/commit/
401f6422475c54c78b57de7509333b1c529bfb9b
src/coreclr/src/jit/flowgraph.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/jit/flowgraph.cpp
b/src/coreclr/src/jit/flowgraph.cpp
index
e143970
..
97570c4
100644
(file)
--- 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;