diff --git a/Changelog.md b/Changelog.md index ae422b6c0a52..cfea21e0b9a6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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: diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index ba9e5e23e6e9..811ca9d9d364 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -449,7 +449,7 @@ std::optional checkOptimizerKeys(Json::Value const& _input) std::optional checkOptimizerDetailsKeys(Json::Value const& _input) { - static set keys{"peephole", "jumpdestRemover", "orderLiterals", "deduplicate", "cse", "constantOptimizer", "yul", "yulDetails"}; + static set keys{"peephole", "inliner", "jumpdestRemover", "orderLiterals", "deduplicate", "cse", "constantOptimizer", "yul", "yulDetails"}; return checkKeys(_input, keys, "settings.optimizer.details"); } diff --git a/test/libsolidity/StandardCompiler.cpp b/test/libsolidity/StandardCompiler.cpp index 7e0d5de2906b..9c34872833fd 100644 --- a/test/libsolidity/StandardCompiler.cpp +++ b/test/libsolidity/StandardCompiler.cpp @@ -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": {