Skip to content

Commit 6db0a3f

Browse files
[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]
1 parent f43ad50 commit 6db0a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SandboxIR/SandboxIR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void Function::dumpNameAndArgs(raw_ostream &OS) const {
279279
else
280280
SBArg->printAsOperand(OS);
281281
},
282-
[this, &OS] { OS << ", "; });
282+
[&] { OS << ", "; });
283283
OS << ")";
284284
}
285285
void Function::dump(raw_ostream &OS) const {

0 commit comments

Comments
 (0)