mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow warnings for inline assembly block
This commit is contained in:
parent
c3330faf21
commit
0e33b63468
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user