Merge pull request #6088 from ethereum/yulrun-evmversion-fix

Fix wrong EVMVersion namespace in yulrun
This commit is contained in:
chriseth 2019-02-25 16:03:24 +01:00 committed by GitHub
commit 33199458af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ void printErrors(ErrorList const& _errors)
pair<shared_ptr<Block>, shared_ptr<AsmAnalysisInfo>> parse(string const& _source) pair<shared_ptr<Block>, shared_ptr<AsmAnalysisInfo>> parse(string const& _source)
{ {
AssemblyStack stack(dev::solidity::EVMVersion(), AssemblyStack::Language::StrictAssembly); AssemblyStack stack(langutil::EVMVersion(), AssemblyStack::Language::StrictAssembly);
if (stack.parseAndAnalyze("--INPUT--", _source)) if (stack.parseAndAnalyze("--INPUT--", _source))
{ {
yulAssert(stack.errors().empty(), "Parsed successfully but had errors."); yulAssert(stack.errors().empty(), "Parsed successfully but had errors.");