We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mstore(add(mload(0x80), 0x20), xx) cause IR-based codegen execution revert. However, legacy codegen can execute successfully.
contract Test { bytes public a; uint[] public b; function f(uint x) public returns (bytes memory) { a = ""; for (uint i = 0; i < x; ++i) { a.push() = bytes1(uint8(i)); } return g(a); } function g(bytes memory input) public returns (bytes memory) { uint[2] memory tempStorage; tempStorage[0] = 12345; tempStorage[1] = 67890; assembly { let tempMemory := mload(0x80) mstore(add(tempMemory, 0x20), 0x12345678) } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
mstore(add(mload(0x80), 0x20), xx) cause IR-based codegen execution revert. However, legacy codegen can execute successfully.
Environment
Steps to Reproduce
Lecacy codegen
IR-based codegen
The text was updated successfully, but these errors were encountered: