[clang] 090f9d5 - Fix MSVC "not all control paths return a value" warning. NFC.

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 8 11:26:17 PDT 2020


Author: Simon Pilgrim
Date: 2020-08-08T19:12:11+01:00
New Revision: 090f9d5a55338ee815f5a6ef7aaa1ed712f65e05

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

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

Added: 
    

Modified: 
    clang/lib/Tooling/Syntax/BuildTree.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Tooling/Syntax/BuildTree.cpp b/clang/lib/Tooling/Syntax/BuildTree.cpp
index 21ac6b8bda62..4e76b3825b6f 100644
--- a/clang/lib/Tooling/Syntax/BuildTree.cpp
+++ b/clang/lib/Tooling/Syntax/BuildTree.cpp
@@ -769,6 +769,7 @@ class BuildTreeVisitor : public RecursiveASTVisitor<BuildTreeVisitor> {
       llvm::report_fatal_error("We don't yet support the __super specifier",
                                true);
     }
+    llvm_unreachable("Unhandled NestedNameSpecifier::SpecifierKind enum");
   }
 
   // FIXME: Fix `NestedNameSpecifierLoc::getLocalSourceRange` for the


        


More information about the cfe-commits mailing list