Fix optimizer with regards to INVALID instruction.

This commit is contained in:
chriseth 2017-01-26 15:59:29 +01:00
parent c2b3d8bcd2
commit ae2b59d18a
2 changed files with 2 additions and 0 deletions

View File

@ -199,6 +199,7 @@ struct UnreachableCode
it[0] != Instruction::JUMP &&
it[0] != Instruction::RETURN &&
it[0] != Instruction::STOP &&
it[0] != Instruction::INVALID &&
it[0] != Instruction::SUICIDE
)
return false;

View File

@ -118,6 +118,7 @@ bool SemanticInformation::altersControlFlow(AssemblyItem const& _item)
case Instruction::RETURN:
case Instruction::SUICIDE:
case Instruction::STOP:
case Instruction::INVALID:
return true;
default:
return false;