mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Simplify redundant state check in CompilerStack::analyze()
This commit is contained in:
parent
ee21b03e6c
commit
e8d050a1ce
@ -440,7 +440,7 @@ void CompilerStack::importASTs(std::map<std::string, Json::Value> const& _source
|
||||
|
||||
bool CompilerStack::analyze()
|
||||
{
|
||||
if (m_stackState != ParsedAndImported || m_stackState >= AnalysisPerformed)
|
||||
if (m_stackState != ParsedAndImported)
|
||||
solThrow(CompilerError, "Must call analyze only after parsing was performed.");
|
||||
|
||||
if (!resolveImports())
|
||||
|
Loading…
Reference in New Issue
Block a user