Skip to content

Commit

Permalink
Merge branch 'main' into users/joker-eph/dps-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-eph committed Oct 26, 2023
2 parents a06bcdd + f40ed13 commit fcdb098
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 141 deletions.
2 changes: 1 addition & 1 deletion clang/lib/Driver/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,7 @@ void Driver::BuildInputs(const ToolChain &TC, DerivedArgList &Args,
// Warn -x after last input file has no effect
auto LastXArg = Args.getLastArgValue(options::OPT_x);
const llvm::StringSet<> ValidXArgs = {"cuda", "hip", "cui", "hipi"};
if (!IsCLMode() || ValidXArgs.find(LastXArg) != ValidXArgs.end()) {
if (!IsCLMode() || ValidXArgs.contains(LastXArg)) {
Arg *LastXArg = Args.getLastArgNoClaim(options::OPT_x);
Arg *LastInputArg = Args.getLastArgNoClaim(options::OPT_INPUT);
if (LastXArg && LastInputArg &&
Expand Down

0 comments on commit fcdb098

Please sign in to comment.