mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
some more work
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
{
|
||||
let a := calldataload(0)
|
||||
if calldataload(1) {
|
||||
// this can be removed
|
||||
a := 2
|
||||
revert(0, 0)
|
||||
}
|
||||
sstore(0, a)
|
||||
}
|
||||
// ----
|
||||
// step: unusedAssignEliminator
|
||||
//
|
||||
// {
|
||||
// let a := calldataload(0)
|
||||
// if calldataload(1)
|
||||
// {
|
||||
// a := 2
|
||||
// revert(0, 0)
|
||||
// }
|
||||
// sstore(0, a)
|
||||
// }
|
||||
Reference in New Issue
Block a user