Merge pull request #10615 from ethereum/develop

Merge develop into breaking.
This commit is contained in:
chriseth
2020-12-15 18:34:01 +01:00
committed by GitHub
4 changed files with 24 additions and 1 deletions
+5 -1
View File
@@ -332,7 +332,11 @@ vector<YulString> AsmAnalyzer::operator()(FunctionCall const& _funCall)
for (size_t i = _funCall.arguments.size(); i > 0; i--)
{
Expression const& arg = _funCall.arguments[i - 1];
if (auto literalArgumentKind = literalArguments ? literalArguments->at(i - 1) : std::nullopt)
if (
auto literalArgumentKind = (literalArguments && i <= literalArguments->size()) ?
literalArguments->at(i - 1) :
std::nullopt
)
{
if (!holds_alternative<Literal>(arg))
m_errorReporter.typeError(