From d5ac28efffa77191a65cacc25a39edfdef2ecc1a Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Wed, 11 Jan 2023 11:05:01 -0600 Subject: [PATCH] [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. --- clang/lib/Driver/Driver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 0194143..fe9e9bb 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; -- 2.7.4