mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add markAsInvalid to the various assemblies.
This commit is contained in:
committed by
chriseth
parent
579e4b5a69
commit
92cd1ddb7d
@@ -521,6 +521,7 @@ map<u256, u256> Assembly::optimiseInternal(
|
||||
|
||||
LinkerObject const& Assembly::assemble() const
|
||||
{
|
||||
assertThrow(!m_invalid, AssemblyException, "Attempted to assemble invalid Assembly object.");
|
||||
// Return the already assembled object, if present.
|
||||
if (!m_assembledObject.bytecode.empty())
|
||||
return m_assembledObject;
|
||||
|
||||
Reference in New Issue
Block a user