Allow warnings for inline assembly block

This commit is contained in:
Alex Beregszaszi 2016-10-20 01:09:57 +01:00
parent c3330faf21
commit 0e33b63468
2 changed files with 2 additions and 2 deletions

View File

@ -575,7 +575,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
return true;
}
);
solAssert(errors.empty(), "Code generation for inline assembly with errors requested.");
solAssert(Error::containsOnlyWarnings(errors), "Code generation for inline assembly with errors requested.");
m_context.setStackOffset(startStackHeight);
return false;
}

View File

@ -51,7 +51,7 @@ bool successParse(std::string const& _source, bool _assemble = false)
if (_assemble)
{
stack.assemble();
if (!stack.errors().empty())
if (!stack.errors().empty() && !Error::containsOnlyWarnings(stack.errors()))
return false;
}
}