File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1623,7 +1623,6 @@ bool CommandLineParser::ParseCommandLineOptions(int argc,
1623
1623
bool DashDashFound = false ; // Have we read '--'?
1624
1624
for (int i = FirstArg; i < argc; ++i) {
1625
1625
Option *Handler = nullptr ;
1626
- Option *NearestHandler = nullptr ;
1627
1626
std::string NearestHandlerString;
1628
1627
StringRef Value;
1629
1628
StringRef ArgName = " " ;
@@ -1703,8 +1702,7 @@ bool CommandLineParser::ParseCommandLineOptions(int argc,
1703
1702
// Otherwise, look for the closest available option to report to the user
1704
1703
// in the upcoming error.
1705
1704
if (!Handler && SinkOpts.empty ())
1706
- NearestHandler =
1707
- LookupNearestOption (ArgName, OptionsMap, NearestHandlerString);
1705
+ LookupNearestOption (ArgName, OptionsMap, NearestHandlerString);
1708
1706
}
1709
1707
1710
1708
if (!Handler) {
You can’t perform that action at this time.
0 commit comments