Author: Joseph Huber Date: 2023-01-11T11:05:24-06:00 New Revision: d5ac28efffa77191a65cacc25a39edfdef2ecc1a
URL: https://github.com/llvm/llvm-project/commit/d5ac28efffa77191a65cacc25a39edfdef2ecc1a DIFF: https://github.com/llvm/llvm-project/commit/d5ac28efffa77191a65cacc25a39edfdef2ecc1a.diff LOG: [OpenMP] Fix unused capature and name Summary: This capture isn't used, get rid of it and change the name since it's more generic now. Added: Modified: clang/lib/Driver/Driver.cpp Removed: ################################################################################ diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 0194143db7b0..fe9e9bb7055f 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -5712,8 +5712,8 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA, // When using both -save-temps and -emit-llvm, use a ".tmp.bc" suffix for // the unoptimized bitcode so that it does not get overwritten by the ".bc" // optimized bitcode output. - auto IsHIPRDCInCompilePhase = [&C](const JobAction &JA, - const llvm::opt::DerivedArgList &Args) { + auto IsAMDRDCInCompilePhase = [](const JobAction &JA, + const llvm::opt::DerivedArgList &Args) { // The relocatable compilation in HIP and OpenMP implies -emit-llvm. // Similarly, use a ".tmp.bc" suffix for the unoptimized bitcode // (generated in the compile phase.) @@ -5727,7 +5727,7 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA, }; if (!AtTopLevel && JA.getType() == types::TY_LLVM_BC && (C.getArgs().hasArg(options::OPT_emit_llvm) || - IsHIPRDCInCompilePhase(JA, C.getArgs()))) + IsAMDRDCInCompilePhase(JA, C.getArgs()))) Suffixed += ".tmp"; Suffixed += '.'; Suffixed += Suffix; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits