mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Ensure we fail gracefully when user tries to optimize Yul code
This commit is contained in:
@@ -861,13 +861,11 @@ bool CommandLineInterface::processInput()
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (optimize && inputLanguage == Input::Assembly)
|
||||
if (optimize && inputLanguage != Input::StrictAssembly)
|
||||
{
|
||||
serr() <<
|
||||
"Optimizer cannot be used for loose assembly. Use --" <<
|
||||
"Optimizer can only be used for strict assembly. Use --" <<
|
||||
g_strStrictAssembly <<
|
||||
" or --" <<
|
||||
g_strYul <<
|
||||
"." <<
|
||||
endl;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user