Skip to content

Commit c2a87d7

Browse files
committed
[AMDGPU] Remove unused lambda capture (NFC)
/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:733:30: error: lambda capture 'Ctx' is not used [-Werror,-Wunused-lambda-capture] auto TryGetMCExprValue = [&Ctx](const MCExpr *Value, uint64_t &Res) -> bool { ~^~~ 1 error generated.
1 parent 8b400de commit c2a87d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
730730
return MCConstantExpr::create(Value, Ctx);
731731
};
732732

733-
auto TryGetMCExprValue = [&Ctx](const MCExpr *Value, uint64_t &Res) -> bool {
733+
auto TryGetMCExprValue = [](const MCExpr *Value, uint64_t &Res) -> bool {
734734
int64_t Val;
735735
if (Value->evaluateAsAbsolute(Val)) {
736736
Res = Val;

0 commit comments

Comments
 (0)