[Lldb-commits] [lldb] 4535dbd - [lldb] Fix a warning
Kazu Hirata via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 1 22:14:35 PDT 2022
Author: Kazu Hirata
Date: 2022-09-01T22:14:25-07:00
New Revision: 4535dbd55962989e16f0f7208fae9ce75ed9863c
URL: https://github.com/llvm/llvm-project/commit/4535dbd55962989e16f0f7208fae9ce75ed9863c
DIFF: https://github.com/llvm/llvm-project/commit/4535dbd55962989e16f0f7208fae9ce75ed9863c.diff
LOG: [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]
Added:
Modified:
lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h
index 2ed049ffac990..07dfcf692fca8 100644
--- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h
+++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.h
@@ -48,8 +48,6 @@ class EmulateInstructionRISCV : public EmulateInstruction {
case eInstructionTypePrologueEpilogue:
case eInstructionTypeAll:
return false;
- default:
- llvm_unreachable("Unhandled instruction type");
}
llvm_unreachable("Fully covered switch above!");
}
More information about the lldb-commits
mailing list