[Lldb-commits] [lldb] c12c90d - [lldb] Fix a warning
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 15 09:19:02 PST 2022
Author: Kazu Hirata
Date: 2022-12-15T09:18:55-08:00
New Revision: c12c90d8f599dbbe423459d2b0f08b95fc7428be
URL: https://github.com/llvm/llvm-project/commit/c12c90d8f599dbbe423459d2b0f08b95fc7428be
DIFF: https://github.com/llvm/llvm-project/commit/c12c90d8f599dbbe423459d2b0f08b95fc7428be.diff
LOG: [lldb] Fix a warning
This patch fixes:
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp:1402:18:
error: default label in switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]
Added:
Modified:
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
index cb54097b52f5b..a3e604916a0ea 100644
--- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
+++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
@@ -1399,8 +1399,6 @@ class Executor {
case FLE:
return inst.rd.Write(m_emu, rs1.compare(rs2) !=
APFloat::cmpGreaterThan);
- default:
- llvm_unreachable("Invalid F_CMP");
}
})
.value_or(false);
More information about the lldb-commits
mailing list