diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-03-22 08:14:42 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-03-22 08:14:42 +0800 |
commit | 31ccd19a38dd21c8bac4a34eaf88183e038b050a (patch) | |
tree | 9374a161acd9c80734383428533be9d93e2f8619 | |
parent | 85743c7319a9a9b7b44761b77af04957d637bad9 (diff) | |
download | mrust-31ccd19a38dd21c8bac4a34eaf88183e038b050a.tar.gz |
MIR From HIR - TODO for try-catch handling
-rw-r--r-- | src/mir/from_hir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index 9c7e0b25..a20c4257 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -671,6 +671,11 @@ namespace { } target_block = &*it; } + else { + if( target_block->label != "" && target_block->label[0] == '#' ) { + TODO(node.span(), "Break within try block, want to break parent loop instead"); + } + } if( node.m_continue ) { ASSERT_BUG(node.span(), !node.m_value, "Continue with a value isn't valid"); |