mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul codegen for immutables.
This commit is contained in:
@@ -35,6 +35,10 @@ struct IRLValue
|
||||
{
|
||||
IRVariable variable;
|
||||
};
|
||||
struct Immutable
|
||||
{
|
||||
VariableDeclaration const* variable = nullptr;
|
||||
};
|
||||
struct Storage
|
||||
{
|
||||
std::string const slot;
|
||||
@@ -59,7 +63,7 @@ struct IRLValue
|
||||
{
|
||||
std::vector<std::optional<IRLValue>> components;
|
||||
};
|
||||
std::variant<Stack, Storage, Memory, Tuple> kind;
|
||||
std::variant<Stack, Immutable, Storage, Memory, Tuple> kind;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user