aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-25 05:45:10 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-25 05:45:10 +0800
commit8c3ec16132e77084c8a08b79b90922b82ec8e1cd (patch)
treef810bf875b00cd9c3f3d11ff44ac9c0cf98851a7 /libsolidity
parentaf2d2499c1ccd431f5ac9455c2cbb63d3891f9b0 (diff)
downloaddexon-solidity-8c3ec16132e77084c8a08b79b90922b82ec8e1cd.tar
dexon-solidity-8c3ec16132e77084c8a08b79b90922b82ec8e1cd.tar.gz
dexon-solidity-8c3ec16132e77084c8a08b79b90922b82ec8e1cd.tar.bz2
dexon-solidity-8c3ec16132e77084c8a08b79b90922b82ec8e1cd.tar.lz
dexon-solidity-8c3ec16132e77084c8a08b79b90922b82ec8e1cd.tar.xz
dexon-solidity-8c3ec16132e77084c8a08b79b90922b82ec8e1cd.tar.zst
dexon-solidity-8c3ec16132e77084c8a08b79b90922b82ec8e1cd.zip
Scanner requires only the SourcesSet state
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/interface/CompilerStack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp
index 72712298..be0d060e 100644
--- a/libsolidity/interface/CompilerStack.cpp
+++ b/libsolidity/interface/CompilerStack.cpp
@@ -507,7 +507,7 @@ string const& CompilerStack::onChainMetadata(string const& _contractName) const
Scanner const& CompilerStack::scanner(string const& _sourceName) const
{
- if (m_stackState < ParsingSuccessful)
+ if (m_stackState < SourcesSet)
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Parsing was not successful."));
return *source(_sourceName).scanner;