From a4d2943bf6b350ea62745ab25c7dcc2f1d17a470 Mon Sep 17 00:00:00 2001 From: Weining Lu Date: Tue, 1 Mar 2022 10:57:14 +0800 Subject: [PATCH] [LoongArch][NFC] Delete unnecessary return behind of llvm_unreachable --- .../lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp index 2ea142679f47..7af2dc0ffb26 100644 --- a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp +++ b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp @@ -66,7 +66,6 @@ LoongArchMCCodeEmitter::getMachineOpValue(const MCInst &MI, const MCOperand &MO, return static_cast(MO.getImm()); llvm_unreachable("Unhandled expression!"); - return 0; } void LoongArchMCCodeEmitter::encodeInstruction(