mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix optimizer with regards to INVALID instruction.
This commit is contained in:
parent
c2b3d8bcd2
commit
ae2b59d18a
@ -199,6 +199,7 @@ struct UnreachableCode
|
|||||||
it[0] != Instruction::JUMP &&
|
it[0] != Instruction::JUMP &&
|
||||||
it[0] != Instruction::RETURN &&
|
it[0] != Instruction::RETURN &&
|
||||||
it[0] != Instruction::STOP &&
|
it[0] != Instruction::STOP &&
|
||||||
|
it[0] != Instruction::INVALID &&
|
||||||
it[0] != Instruction::SUICIDE
|
it[0] != Instruction::SUICIDE
|
||||||
)
|
)
|
||||||
return false;
|
return false;
|
||||||
|
@ -118,6 +118,7 @@ bool SemanticInformation::altersControlFlow(AssemblyItem const& _item)
|
|||||||
case Instruction::RETURN:
|
case Instruction::RETURN:
|
||||||
case Instruction::SUICIDE:
|
case Instruction::SUICIDE:
|
||||||
case Instruction::STOP:
|
case Instruction::STOP:
|
||||||
|
case Instruction::INVALID:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user