mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol - Yul] Add support for built-in gasleft().
This commit is contained in:
@@ -771,6 +771,11 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
|
||||
{
|
||||
break;
|
||||
}
|
||||
case FunctionType::Kind::GasLeft:
|
||||
{
|
||||
define(_functionCall) << "gas()\n";
|
||||
break;
|
||||
}
|
||||
default:
|
||||
solUnimplemented("FunctionKind " + toString(static_cast<int>(functionType->kind())) + " not yet implemented");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user