Index: llvm/lib/Target/BPF/BPFISelLowering.cpp =================================================================== --- llvm/lib/Target/BPF/BPFISelLowering.cpp +++ llvm/lib/Target/BPF/BPFISelLowering.cpp @@ -279,7 +279,8 @@ } SDValue BPFTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const { - switch (Op.getOpcode()) { + uint32_t Opcode = Op.getOpcode(); + switch (Opcode) { case ISD::BR_CC: return LowerBR_CC(Op, DAG); case ISD::GlobalAddress: @@ -289,7 +290,7 @@ case ISD::DYNAMIC_STACKALLOC: report_fatal_error("Unsupported dynamic stack allocation"); default: - llvm_unreachable("unimplemented operand"); + report_fatal_error("Unimplemented lowering operation opcode %u", Opcode); } }