[clang][Darwin] Minor args cleanup (#139142)

I just realized that ArgList.hasArg takes multiple arguments.
Consolidate the two calls into one.
This commit is contained in:
Ian Anderson 2025-05-09 11:37:47 -07:00 committed by GitHub
parent 2d9884af9f
commit 0d5124775c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2582,8 +2582,7 @@ void DarwinClang::AddClangSystemIncludeArgs(
llvm::opt::ArgStringList &CC1Args) const {
AppleMachO::AddClangSystemIncludeArgs(DriverArgs, CC1Args);
if (DriverArgs.hasArg(options::OPT_nostdinc) ||
DriverArgs.hasArg(options::OPT_nostdlibinc))
if (DriverArgs.hasArg(options::OPT_nostdinc, options::OPT_nostdlibinc))
return;
llvm::SmallString<128> Sysroot = GetEffectiveSysroot(DriverArgs);