diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp index de81904143b7b1..b7388ed9e85a85 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp @@ -730,7 +730,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo, return MCConstantExpr::create(Value, Ctx); }; - auto TryGetMCExprValue = [&Ctx](const MCExpr *Value, uint64_t &Res) -> bool { + auto TryGetMCExprValue = [](const MCExpr *Value, uint64_t &Res) -> bool { int64_t Val; if (Value->evaluateAsAbsolute(Val)) { Res = Val;