[llvm] 6db0a3f - [SandboxIR] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 21:03:22 PDT 2024
Author: Kazu Hirata
Date: 2024-07-10T21:03:16-07:00
New Revision: 6db0a3f853c901fd47d9d8b715c8d68ece2837c4
URL: https://github.com/llvm/llvm-project/commit/6db0a3f853c901fd47d9d8b715c8d68ece2837c4
DIFF: https://github.com/llvm/llvm-project/commit/6db0a3f853c901fd47d9d8b715c8d68ece2837c4.diff
LOG: [SandboxIR] Fix a warning
This patch fixes:
llvm/lib/SandboxIR/SandboxIR.cpp:282:8: error: lambda capture 'this'
is not used [-Werror,-Wunused-lambda-capture]
Added:
Modified:
llvm/lib/SandboxIR/SandboxIR.cpp
Removed:
################################################################################
diff --git a/llvm/lib/SandboxIR/SandboxIR.cpp b/llvm/lib/SandboxIR/SandboxIR.cpp
index 7536afc9dd157..e4a902fb93166 100644
--- a/llvm/lib/SandboxIR/SandboxIR.cpp
+++ b/llvm/lib/SandboxIR/SandboxIR.cpp
@@ -279,7 +279,7 @@ void Function::dumpNameAndArgs(raw_ostream &OS) const {
else
SBArg->printAsOperand(OS);
},
- [this, &OS] { OS << ", "; });
+ [&] { OS << ", "; });
OS << ")";
}
void Function::dump(raw_ostream &OS) const {
More information about the llvm-commits
mailing list