[Lldb-commits] [lldb] 817d618 - [lldb/Editline] Fix a -Wreturn-type	warning with gcc
    Pavel Labath via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Wed Dec  4 01:45:20 PST 2019
    
    
  
Author: Pavel Labath
Date: 2019-12-04T10:44:12+01:00
New Revision: 817d6184e75db5eefca907a296e8379d8f570e7e
URL: https://github.com/llvm/llvm-project/commit/817d6184e75db5eefca907a296e8379d8f570e7e
DIFF: https://github.com/llvm/llvm-project/commit/817d6184e75db5eefca907a296e8379d8f570e7e.diff
LOG: [lldb/Editline] Fix a -Wreturn-type warning with gcc
Added: 
    
Modified: 
    lldb/source/Host/common/Editline.cpp
Removed: 
    
################################################################################
diff  --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp
index 45d3db24bbc6..b29c218f0369 100644
--- a/lldb/source/Host/common/Editline.cpp
+++ b/lldb/source/Host/common/Editline.cpp
@@ -120,6 +120,7 @@ static int GetOperation(HistoryOperation op) {
     case HistoryOperation::Newest:
       return H_LAST;
   }
+  llvm_unreachable("Fully covered switch!");
 }
 
 
        
    
    
More information about the lldb-commits
mailing list