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> _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits