From 4535dbd55962989e16f0f7208fae9ce75ed9863c Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 1 Sep 2022 22:14:25 -0700 Subject: [PATCH] [lldb] Fix a warning This patch fixes: lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h:51:5: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] --- lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h index 2ed049f..07dfcf6 100644 --- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h +++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h @@ -48,8 +48,6 @@ public: case eInstructionTypePrologueEpilogue: case eInstructionTypeAll: return false; - default: - llvm_unreachable("Unhandled instruction type"); } llvm_unreachable("Fully covered switch above!"); } -- 2.7.4