diff --git a/src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp b/src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp index 4c5d1f3004e..86aeaccd52f 100644 --- a/src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp +++ b/src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp @@ -2996,7 +2996,7 @@ void LIR_Assembler::emit_profile_call(LIR_OpProfileCall* op) { ProfileStub *stub = profile_capture_ratio > 1 ? new ProfileStub() : nullptr; - auto lambda = [op, stub] (LIR_Assembler* ce, LIR_Op* base_op) { + auto lambda = [stub] (LIR_Assembler* ce, LIR_Op* base_op) { #undef __ #define __ masm->