Add markAsInvalid to the various assemblies.

This commit is contained in:
Daniel Kirchner
2020-07-16 17:38:13 +02:00
committed by chriseth
parent 579e4b5a69
commit 92cd1ddb7d
9 changed files with 31 additions and 5 deletions
+1
View File
@@ -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;