Skip to content

Commit b9de445

Browse files
committed
[NFC][Clang][Driver] Fix a compile warning by unused variable
1 parent 3cd08b5 commit b9de445

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,9 +877,8 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
877877
StringRef Linker = Args.getLastArgValue(options::OPT_fuse_ld_EQ);
878878
const char *LinkerPath = Args.MakeArgString(ToolChain.GetLinkerPath());
879879
const Driver &D = ToolChain.getDriver();
880-
bool ClosedNeeded =
881-
checkForAMDProprietaryOptOptions(ToolChain, D, Args, CmdArgs,
882-
false /*isLLD*/, true /*checkOnly*/);
880+
checkForAMDProprietaryOptOptions(ToolChain, D, Args, CmdArgs, /*isLLD=*/false,
881+
/*checkOnly=*/true);
883882

884883
const bool IsFatLTO = Args.hasFlag(options::OPT_ffat_lto_objects,
885884
options::OPT_fno_fat_lto_objects, false);

0 commit comments

Comments
 (0)