[clang] db77f7a - Silence a "not all control paths return a value" warning; NFC

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 3 11:20:21 PST 2022


Author: Aaron Ballman
Date: 2022-01-03T14:20:09-05:00
New Revision: db77f7a074d70f0092ba0870ad0ce42417095348

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

LOG: Silence a "not all control paths return a value" warning; NFC

Added: 
    

Modified: 
    clang/lib/Sema/SemaCodeComplete.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
index d3c154f18937..f9f20af1497a 100644
--- a/clang/lib/Sema/SemaCodeComplete.cpp
+++ b/clang/lib/Sema/SemaCodeComplete.cpp
@@ -6150,6 +6150,7 @@ static bool argMatchesTemplateParams(const ParsedTemplateArgument &Arg,
   case ParsedTemplateArgument::Template:
     return llvm::isa<TemplateTemplateParmDecl>(Param); // signature not checked
   }
+  llvm_unreachable("Unhandled switch case");
 }
 
 QualType Sema::ProduceTemplateArgumentSignatureHelp(


        


More information about the cfe-commits mailing list