[llvm] a4d2943 - [LoongArch][NFC] Delete unnecessary return behind of llvm_unreachable
Weining Lu via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 28 19:28:49 PST 2022
Author: Weining Lu
Date: 2022-03-01T11:25:59+08:00
New Revision: a4d2943bf6b350ea62745ab25c7dcc2f1d17a470
URL: https://github.com/llvm/llvm-project/commit/a4d2943bf6b350ea62745ab25c7dcc2f1d17a470
DIFF: https://github.com/llvm/llvm-project/commit/a4d2943bf6b350ea62745ab25c7dcc2f1d17a470.diff
LOG: [LoongArch][NFC] Delete unnecessary return behind of llvm_unreachable
Added:
Modified:
llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp b/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCCodeEmitter.cpp
index 2ea142679f47b..7af2dc0ffb26e 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<unsigned>(MO.getImm());
llvm_unreachable("Unhandled expression!");
- return 0;
}
void LoongArchMCCodeEmitter::encodeInstruction(
More information about the llvm-commits
mailing list