Fix call to llvm::opt::OptionTable::PrintHelp (#16269)

The signature here changed, but the old arguments implicitly converted
to the parameter types for the wrong overload, so we didn't notice.
Add a simple test that would have at least caught this for the driver.
This commit is contained in:
Jordan Rose
2018-05-02 16:54:10 -07:00
committed by GitHub
parent 23260b8e7b
commit a214f0b39b
6 changed files with 31 additions and 5 deletions

View File

@@ -1696,7 +1696,7 @@ int swift::performFrontend(ArrayRef<const char *> Args,
std::unique_ptr<llvm::opt::OptTable> Options(createSwiftOptTable());
Options->PrintHelp(llvm::outs(), displayName(MainExecutablePath).c_str(),
"Swift frontend", IncludedFlagsBitmask,
ExcludedFlagsBitmask);
ExcludedFlagsBitmask, /*ShowAllAliases*/false);
return finishDiagProcessing(0);
}