Merge pull request #8766 from ethereum/sol_yul_gasleft

[Sol - Yul] Add support for built-in gasleft().
This commit is contained in:
chriseth
2020-04-24 14:24:01 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
@@ -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");
}