Merge pull request #8416 from ethereum/reuseYulCalldataTailAccess

Fix yul calldata tail access functions and reuse them for old codegen.
This commit is contained in:
chriseth
2020-03-09 15:10:48 +01:00
committed by GitHub
3 changed files with 21 additions and 53 deletions
@@ -0,0 +1,9 @@
pragma experimental ABIEncoderV2;
contract C {
function f(uint256[][] calldata x) external { x[0]; }
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
// ----
// f(uint256[][]): 0x20, 1, 0x20, 2, 0x42 -> FAILURE, hex"08c379a0", 0x20, 23, "Calldata tail too short"