diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-01-11 11:05:01 -0600 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-01-11 11:05:24 -0600 |
commit | d5ac28efffa77191a65cacc25a39edfdef2ecc1a (patch) | |
tree | 35a19cc33929b24004dc6cfe8cec57e4061157b5 /clang/lib/Driver/Driver.cpp | |
parent | 9b16c624edde50e2a460f9bd0d2e9ac3cb1af695 (diff) | |
download | llvm-d5ac28efffa77191a65cacc25a39edfdef2ecc1a.zip llvm-d5ac28efffa77191a65cacc25a39edfdef2ecc1a.tar.gz llvm-d5ac28efffa77191a65cacc25a39edfdef2ecc1a.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 6 |
1 files 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; |