[llvm] d7f0f4a - [OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang to OpenMPIRBuilder
Jan Sjodin via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 08:43:49 PDT 2022
Author: Jan Sjodin
Date: 2022-11-03T11:41:21-04:00
New Revision: d7f0f4a0a23e4056dd2545b84e294839893abdb2
URL: https://github.com/llvm/llvm-project/commit/d7f0f4a0a23e4056dd2545b84e294839893abdb2
DIFF: https://github.com/llvm/llvm-project/commit/d7f0f4a0a23e4056dd2545b84e294839893abdb2.diff
LOG: [OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang to OpenMPIRBuilder
Remove unused [this] capture in lambda.
Added:
Modified:
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 89629583dc5c2..96ea0eb21882b 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -4748,7 +4748,7 @@ void OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata(
// Create the offloading info metadata node.
NamedMDNode *MD = M.getOrInsertNamedMetadata("omp_offload.info");
auto &&TargetRegionMetadataEmitter =
- [this, &C, MD, &OrderedEntries, &GetMDInt, &GetMDString](
+ [&C, MD, &OrderedEntries, &GetMDInt, &GetMDString](
const TargetRegionEntryInfo &EntryInfo,
const OffloadEntriesInfoManager::OffloadEntryInfoTargetRegion &E) {
// Generate metadata for target regions. Each entry of this metadata
More information about the llvm-commits
mailing list