Skip to content

Commit a3869e1

Browse files
committed
Address review comments
1 parent c617fa8 commit a3869e1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

test/libyul/yulOptimizerTests/unusedStoreEliminator/returndatacopy_returndatasize.yul

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
// ```
77
// let x = returndatasize()
88
// staticcall(...)
9-
// returndatacopy(0, 0, x) // Cannot be optimized away, becasue it can revert.
9+
// returndatacopy(0, 0, x) // Cannot be optimized away, because it can revert.
1010
// ```
11-
function foo() ->
1211
{
1312
returndatacopy(0,0,returndatasize())
1413
}

test/libyul/yulOptimizerTests/unusedStoreEliminator/returndatacopy_returndatasize_var.yul

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// ```
77
// let x = returndatasize()
88
// staticcall(...)
9-
// returndatacopy(0, 0, x) // Cannot be optimized away, becasue it can revert.
9+
// returndatacopy(0, 0, x) // Cannot be optimized away, because it can revert.
1010
// ```
1111
{
1212
let s := returndatasize()

0 commit comments

Comments
 (0)