Author: Simon Pilgrim
Date: 2022-11-17T17:19:41Z
New Revision: 6faf5d72459aee4f388dbd13eb2ddd097d2be067

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

LOG: Fix MSVC "not all control paths return a value" warning. NFC.

Added: 
    

Modified: 
    clang-tools-extra/include-cleaner/lib/HTMLReport.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp 
b/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp
index b1c9f6d54866..2b5d67c29955 100644
--- a/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp
+++ b/clang-tools-extra/include-cleaner/lib/HTMLReport.cpp
@@ -103,6 +103,7 @@ llvm::StringRef refType(RefType T) {
   case RefType::Ambiguous:
     return "ambiguous";
   }
+  llvm_unreachable("unhandled RefType enum");
 }
 
 class Reporter {


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

Reply via email to