aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-07 05:07:02 +0800
committerChristian <c@ethdev.com>2014-11-07 05:07:02 +0800
commit6c2e3ffd76eaf43f4a309d3316793126ccf72c40 (patch)
treea0957de01b09b063cc4a6e077faf09658733bbd6 /Compiler.cpp
parentd3215fb4a697e8e9962bf59f573fab309ab5ac18 (diff)
parenteb894869d49d4be512c73e517f7013717645cbbb (diff)
downloaddexon-solidity-6c2e3ffd76eaf43f4a309d3316793126ccf72c40.tar
dexon-solidity-6c2e3ffd76eaf43f4a309d3316793126ccf72c40.tar.gz
dexon-solidity-6c2e3ffd76eaf43f4a309d3316793126ccf72c40.tar.bz2
dexon-solidity-6c2e3ffd76eaf43f4a309d3316793126ccf72c40.tar.lz
dexon-solidity-6c2e3ffd76eaf43f4a309d3316793126ccf72c40.tar.xz
dexon-solidity-6c2e3ffd76eaf43f4a309d3316793126ccf72c40.tar.zst
dexon-solidity-6c2e3ffd76eaf43f4a309d3316793126ccf72c40.zip
Merge remote-tracking branch 'ethereum/develop' into sol_typePromotion
Diffstat (limited to 'Compiler.cpp')
-rw-r--r--Compiler.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/Compiler.cpp b/Compiler.cpp
index dfc351fa..8afd52b2 100644
--- a/Compiler.cpp
+++ b/Compiler.cpp
@@ -252,17 +252,15 @@ bool Compiler::visit(WhileStatement& _whileStatement)
bool Compiler::visit(Continue&)
{
- if (asserts(!m_continueTags.empty()))
- BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Jump tag not available for \"continue\"."));
- m_context.appendJumpTo(m_continueTags.back());
+ if (!m_continueTags.empty())
+ m_context.appendJumpTo(m_continueTags.back());
return false;
}
bool Compiler::visit(Break&)
{
- if (asserts(!m_breakTags.empty()))
- BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Jump tag not available for \"break\"."));
- m_context.appendJumpTo(m_breakTags.back());
+ if (!m_breakTags.empty())
+ m_context.appendJumpTo(m_breakTags.back());
return false;
}