mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user