[llvm-branch-commits] [lldb] e7a776e - [lldb] Silence a GCC warning about missing returns after a fully covered switch. NFC.

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Aug 5 01:16:27 PDT 2022


Author: Martin Storsjö
Date: 2022-08-05T01:13:07-07:00
New Revision: e7a776ef4a4588ccd0f69dcbbf2b45f0e23c9f3f

URL: https://github.com/llvm/llvm-project/commit/e7a776ef4a4588ccd0f69dcbbf2b45f0e23c9f3f
DIFF: https://github.com/llvm/llvm-project/commit/e7a776ef4a4588ccd0f69dcbbf2b45f0e23c9f3f.diff

LOG: [lldb] Silence a GCC warning about missing returns after a fully covered switch. NFC.

(cherry picked from commit b7c5683fac3de2f3349d57b9e133ac53204b1148)

Added: 
    

Modified: 
    lldb/source/Core/Disassembler.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Core/Disassembler.cpp b/lldb/source/Core/Disassembler.cpp
index 4c57be44dc9c5..cc354636987cb 100644
--- a/lldb/source/Core/Disassembler.cpp
+++ b/lldb/source/Core/Disassembler.cpp
@@ -599,6 +599,7 @@ const char *Instruction::GetNameForInstructionControlFlowKind(
   case eInstructionControlFlowKindFarJump:
     return "far jump";
   }
+  llvm_unreachable("Fully covered switch above!");
 }
 
 void Instruction::Dump(lldb_private::Stream *s, uint32_t max_opcode_byte_size,


        


More information about the llvm-branch-commits mailing list