[clang-tools-extra] 43eca88 - Fix "control reaches end of non-void function" warning. NFCI.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 06:10:07 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-01T14:08:48+01:00
New Revision: 43eca880c6eda10fd191c4e9e04bf04830c9c6f2

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

LOG: Fix "control reaches end of non-void function" warning. NFCI.

Added: 
    

Modified: 
    clang-tools-extra/clangd/SemanticHighlighting.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/SemanticHighlighting.cpp b/clang-tools-extra/clangd/SemanticHighlighting.cpp
index 77b2cbce40d9..59af922d4005 100644
--- a/clang-tools-extra/clangd/SemanticHighlighting.cpp
+++ b/clang-tools-extra/clangd/SemanticHighlighting.cpp
@@ -520,6 +520,7 @@ llvm::StringRef toSemanticTokenType(HighlightingKind Kind) {
   case HighlightingKind::InactiveCode:
     return "comment";
   }
+  llvm_unreachable("unhandled HighlightingKind");
 }
 
 std::vector<TheiaSemanticHighlightingInformation>


        


More information about the cfe-commits mailing list