aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-04-05 20:23:36 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-06 19:52:19 +0800
commite8be0e61b395c61a836e018861cc3fdec10f6a8a (patch)
treea6ba819670589b75a90cae96f60b523e00fa62c7 /libsolidity/analysis
parentd5f40c141b203eb12c4d6fa97418b1a8f0f789bd (diff)
downloaddexon-solidity-e8be0e61b395c61a836e018861cc3fdec10f6a8a.tar.gz
dexon-solidity-e8be0e61b395c61a836e018861cc3fdec10f6a8a.tar.zst
dexon-solidity-e8be0e61b395c61a836e018861cc3fdec10f6a8a.zip
Catch FatalError in CompilerStack::analysis to cover all the analysis tests
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index a252742d..ce2771ca 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -60,17 +60,7 @@ bool typeSupportedByOldABIEncoder(Type const& _type)
bool TypeChecker::checkTypeRequirements(ASTNode const& _contract)
{
- try
- {
- _contract.accept(*this);
- }
- catch (FatalError const&)
- {
- // We got a fatal error which required to stop further type checking, but we can
- // continue normally from here.
- if (m_errorReporter.errors().empty())
- throw; // Something is weird here, rather throw again.
- }
+ _contract.accept(*this);
return Error::containsOnlyWarnings(m_errorReporter.errors());
}