[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:
parent
2d9884af9f
commit
0d5124775c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user