[clang] f32f293 - [CodeGen] Fix a warning
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 12 08:27:18 PST 2022
Author: Kazu Hirata
Date: 2022-12-12T08:27:12-08:00
New Revision: f32f29385c90b7be05dc19a137d3b25d3c614a50
URL: https://github.com/llvm/llvm-project/commit/f32f29385c90b7be05dc19a137d3b25d3c614a50
DIFF: https://github.com/llvm/llvm-project/commit/f32f29385c90b7be05dc19a137d3b25d3c614a50.diff
LOG: [CodeGen] Fix a warning
This patch fixes:
clang/lib/CodeGen/CGOpenMPRuntime.cpp:6098:8: error: lambda capture
'this' is not used [-Werror,-Wunused-lambda-capture]
Added:
Modified:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 6f3f9b30ac95..4a5cb4dfa965 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -6095,7 +6095,7 @@ void CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(
CodeGenFunction CGF(CGM, true);
llvm::OpenMPIRBuilder::FunctionGenCallback &&GenerateOutlinedFunction =
- [this, &CGF, &D, &CodeGen](StringRef EntryFnName) {
+ [&CGF, &D, &CodeGen](StringRef EntryFnName) {
const CapturedStmt &CS = *D.getCapturedStmt(OMPD_target);
CGOpenMPTargetRegionInfo CGInfo(CS, CodeGen, EntryFnName);
More information about the cfe-commits
mailing list