Allow enabling optimisations for Yul + Wasm

This commit is contained in:
Alex Beregszaszi 2019-11-27 12:12:35 +01:00 committed by chriseth
parent f7d7c97b8f
commit c1db89161b

View File

@ -944,7 +944,7 @@ bool CommandLineInterface::processInput()
return false;
}
}
if (optimize && inputLanguage != Input::StrictAssembly)
if (optimize && (inputLanguage != Input::StrictAssembly && inputLanguage != Input::EWasm))
{
serr() <<
"Optimizer can only be used for strict assembly. Use --" <<