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,


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to