diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-27 18:12:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-27 18:12:30 +0800 |
commit | 89fadd6935bd1dda4c8a4846c8fa43ce71cc85cc (patch) | |
tree | 5314a46d2b762184cb351720cf305310fb7ff62f /libsolidity/ast/AST.h | |
parent | 07e0a7e090111dd49e0bb6af96a4036f1bd186ac (diff) | |
parent | 80980309867ce8cdc70ebb5bb36bbe01cfd01361 (diff) | |
download | dexon-solidity-89fadd6935bd1dda4c8a4846c8fa43ce71cc85cc.tar.gz dexon-solidity-89fadd6935bd1dda4c8a4846c8fa43ce71cc85cc.tar.zst dexon-solidity-89fadd6935bd1dda4c8a4846c8fa43ce71cc85cc.zip |
Merge pull request #2645 from ethereum/asserts
Use solAssert where possible
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 8012bcb4..e4656f72 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -797,11 +797,11 @@ public: Declaration(SourceLocation(), std::make_shared<ASTString>(_name)), m_type(_type) {} virtual void accept(ASTVisitor&) override { - BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("MagicVariableDeclaration used inside real AST.")); + solAssert(false, "MagicVariableDeclaration used inside real AST."); } virtual void accept(ASTConstVisitor&) const override { - BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("MagicVariableDeclaration used inside real AST.")); + solAssert(false, "MagicVariableDeclaration used inside real AST."); } virtual TypePointer type() const override { return m_type; } |