Providing an empty string to --yul-optimizations
without enabling yul optimization triggers uncaught exception
#14946
Labels
--yul-optimizations
without enabling yul optimization triggers uncaught exception
#14946
Description
This is a edge case in command-line arg parsing related to assembly optimization flags: Providing the empty string or a string containing only whitespace to
--yul-optimizations
triggers an uncaught exception.Environment
Not present in 0.8.22, most likely due to the change in command-line parsing introduced in #14657.
Steps to Reproduce
Executing either (example Yul provided below):
or
Triggers the exception:
Contrarily:
outputs unoptimized bytecode, as expected:
If the
--optimize
flag is added, the behavior is also as expected:which outputs the optimized bytecode.
Here's the contents of
simple.yul
used above, but this issue should be triggered regardless of input:The text was updated successfully, but these errors were encountered: