Pass internal resolver to assembly analyzer.

This commit is contained in:
chriseth 2017-04-24 19:50:12 +02:00
parent 0ebaf220b5
commit 3df7b06464

View File

@ -80,9 +80,10 @@ bool InlineAssemblyStack::parseAndAssemble(
auto parserResult = Parser(errors).parse(scanner);
if (!errors.empty())
return false;
solAssert(parserResult, "");
AsmAnalyzer::Scopes scopes;
AsmAnalyzer analyzer(scopes, errors);
AsmAnalyzer analyzer(scopes, errors, _identifierAccess.resolve);
solAssert(analyzer.analyze(*parserResult), "");
CodeGenerator(errors).assemble(*parserResult, scopes, _assembly, _identifierAccess);