File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1162,6 +1162,7 @@ An example Yul Object is shown below:
1162
1162
code {
1163
1163
function allocate(size) -> ptr {
1164
1164
ptr := mload(0x40)
1165
+ // Note that Solidity generated IR code reserves memory offset ``0x60`` as well, but a pure Yul object is free to use memory as it chooses.
1165
1166
if iszero(ptr) { ptr := 0x60 }
1166
1167
mstore(0x40, add(ptr, size))
1167
1168
}
@@ -1191,6 +1192,7 @@ An example Yul Object is shown below:
1191
1192
code {
1192
1193
function allocate(size) -> ptr {
1193
1194
ptr := mload(0x40)
1195
+ // Note that Solidity generated IR code reserves memory offset ``0x60`` as well, but a pure Yul object is free to use memory as it chooses.
1194
1196
if iszero(ptr) { ptr := 0x60 }
1195
1197
mstore(0x40, add(ptr, size))
1196
1198
}
You can’t perform that action at this time.
0 commit comments