aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-19 09:19:00 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-27 05:23:21 +0800
commit80980309867ce8cdc70ebb5bb36bbe01cfd01361 (patch)
tree57d9905ce01be0c17ac9598da344ba713911bcb6 /libsolidity/ast/AST.h
parenta605e4eb957f65ab172015bd4f03ee56445a9f91 (diff)
downloaddexon-solidity-80980309867ce8cdc70ebb5bb36bbe01cfd01361.tar.gz
dexon-solidity-80980309867ce8cdc70ebb5bb36bbe01cfd01361.tar.zst
dexon-solidity-80980309867ce8cdc70ebb5bb36bbe01cfd01361.zip
Use solAssert instead of boost throw where possible
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r--libsolidity/ast/AST.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 81ddc754..38396c43 100644
--- a/libsolidity/ast/AST.h
+++ b/libsolidity/ast/AST.h
@@ -791,11 +791,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; }