Skip to content

Commit

Permalink
fixed return valu for resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus committed Nov 6, 2015
1 parent 3f72682 commit 79177de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions libsolidity/analysis/NameAndTypeResolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ bool NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract)
if (!resolver.resolve(*function))
success = false;
}
// if (!result)
// return false;
if (!success)
return false;
}
catch (FatalError const& _e)
{
// if (m_errors.empty())
// throw; // Something is weird here, rather throw again.
if (m_errors.empty())
throw; // Something is weird here, rather throw again.
return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion libsolidity/analysis/ReferencesResolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ReferencesResolver: private ASTConstVisitor
bool resolve(ASTNode& _root)
{
_root.accept(*this);
return true;//m_errors.empty();
return Error::containsOnlyWarnings(m_errors);
}

private:
Expand Down

0 comments on commit 79177de

Please sign in to comment.