Skip to content

Commit 0d51247

Browse files
[clang][Darwin] Minor args cleanup (#139142)
I just realized that ArgList.hasArg takes multiple arguments. Consolidate the two calls into one.
1 parent 2d9884a commit 0d51247

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Driver/ToolChains/Darwin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,8 +2582,7 @@ void DarwinClang::AddClangSystemIncludeArgs(
25822582
llvm::opt::ArgStringList &CC1Args) const {
25832583
AppleMachO::AddClangSystemIncludeArgs(DriverArgs, CC1Args);
25842584

2585-
if (DriverArgs.hasArg(options::OPT_nostdinc) ||
2586-
DriverArgs.hasArg(options::OPT_nostdlibinc))
2585+
if (DriverArgs.hasArg(options::OPT_nostdinc, options::OPT_nostdlibinc))
25872586
return;
25882587

25892588
llvm::SmallString<128> Sysroot = GetEffectiveSysroot(DriverArgs);

0 commit comments

Comments
 (0)