Properly support inliner in settings.optimizer.details

This commit is contained in:
Alex Beregszaszi 2021-05-20 20:21:54 +01:00
parent 13388e283e
commit 75c72cd54d
3 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,7 @@ Compiler Features:
Bugfixes:
* AST: Do not output value of Yul literal if it is not a valid UTF-8 string.
* SMTChecker: Fix internal error on struct constructor with fixed bytes member initialized with string literal.
* Standard JSON: Properly allow the ``inliner`` setting under ``settings.optimizer.details``.
AST Changes:

View File

@ -449,7 +449,7 @@ std::optional<Json::Value> checkOptimizerKeys(Json::Value const& _input)
std::optional<Json::Value> checkOptimizerDetailsKeys(Json::Value const& _input)
{
static set<string> keys{"peephole", "jumpdestRemover", "orderLiterals", "deduplicate", "cse", "constantOptimizer", "yul", "yulDetails"};
static set<string> keys{"peephole", "inliner", "jumpdestRemover", "orderLiterals", "deduplicate", "cse", "constantOptimizer", "yul", "yulDetails"};
return checkKeys(_input, keys, "settings.optimizer.details");
}

View File

@ -1195,7 +1195,8 @@ BOOST_AUTO_TEST_CASE(optimizer_settings_details_different)
"jumpdestRemover" : true,
"orderLiterals" : false,
"peephole" : true,
"yul": true
"yul": true,
"inliner": true
} }
},
"sources": {