mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adding origin location notation to yul ir.
This commit is contained in:
committed by
chriseth
parent
921e21c7cb
commit
838f59fa5b
@@ -1,14 +1,15 @@
|
||||
IR:
|
||||
/*******************************************************
|
||||
/*=====================================================*
|
||||
* WARNING *
|
||||
* Solidity to Yul compilation is still EXPERIMENTAL *
|
||||
* It can result in LOSS OF FUNDS or worse *
|
||||
* !USE AT YOUR OWN RISK! *
|
||||
*******************************************************/
|
||||
*=====================================================*/
|
||||
|
||||
|
||||
object "test_11" {
|
||||
code {
|
||||
/// @src 0:79,169
|
||||
mstore(64, 128)
|
||||
if callvalue() { revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() }
|
||||
|
||||
@@ -25,6 +26,8 @@ object "test_11" {
|
||||
|
||||
function constructor_test_11() {
|
||||
|
||||
/// @src 0:79,169
|
||||
|
||||
}
|
||||
|
||||
function revert_error_ca66f745a3ce8ff40e2ccaf1ad45db7774001b90d25810abd9040049be7bf4bb() {
|
||||
@@ -34,6 +37,7 @@ object "test_11" {
|
||||
}
|
||||
object "test_11_deployed" {
|
||||
code {
|
||||
/// @src 0:79,169
|
||||
mstore(64, 128)
|
||||
|
||||
if iszero(lt(calldatasize(), 4))
|
||||
@@ -83,10 +87,14 @@ object "test_11" {
|
||||
}
|
||||
|
||||
function fun_f_10() -> var__5 {
|
||||
/// @src 0:99,167
|
||||
/// @src 0:133,137
|
||||
let zero_t_bool_1 := zero_value_for_split_t_bool()
|
||||
var__5 := zero_t_bool_1
|
||||
|
||||
/// @src 0:156,160
|
||||
let expr_7 := 0x01
|
||||
/// @src 0:149,160
|
||||
var__5 := expr_7
|
||||
leave
|
||||
|
||||
|
||||
Reference in New Issue
Block a user