[clang] 8b68797 - Fix "not all control paths return a value" diagnostic; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 09:57:31 PDT 2022


Author: Aaron Ballman
Date: 2022-04-28T12:57:07-04:00
New Revision: 8b687974842d2c3442091681fb4d3008ef5810a7

URL: https://github.com/llvm/llvm-project/commit/8b687974842d2c3442091681fb4d3008ef5810a7
DIFF: https://github.com/llvm/llvm-project/commit/8b687974842d2c3442091681fb4d3008ef5810a7.diff

LOG: Fix "not all control paths return a value" diagnostic; NFC

Added: 
    

Modified: 
    clang/include/clang/AST/RecursiveASTVisitor.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/RecursiveASTVisitor.h b/clang/include/clang/AST/RecursiveASTVisitor.h
index 79e5294a3ca17..ae6442d75dd4b 100644
--- a/clang/include/clang/AST/RecursiveASTVisitor.h
+++ b/clang/include/clang/AST/RecursiveASTVisitor.h
@@ -551,6 +551,7 @@ bool RecursiveASTVisitor<Derived>::TraverseConceptRequirement(
     return getDerived().TraverseConceptNestedRequirement(
         cast<concepts::NestedRequirement>(R));
   }
+  llvm_unreachable("unexpected case");
 }
 
 template <typename Derived>


        


More information about the cfe-commits mailing list