[clang] 4c4f4dd - Silence an MSVC "not all control paths" diagnostic; NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 16 06:35:25 PST 2019


Author: Aaron Ballman
Date: 2019-12-16T09:35:15-05:00
New Revision: 4c4f4dd3f894a0f7a20df8b9696ffe22ab388821

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

LOG: Silence an MSVC "not all control paths" diagnostic; NFC.

Added: 
    

Modified: 
    clang/include/clang/AST/TypeProperties.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/TypeProperties.td b/clang/include/clang/AST/TypeProperties.td
index 8fa4e4bc1bcb..caa5835911c5 100644
--- a/clang/include/clang/AST/TypeProperties.td
+++ b/clang/include/clang/AST/TypeProperties.td
@@ -691,6 +691,7 @@ let Class = BuiltinType in {
 
 	def : Creator<[{
 		switch (kind) {
+        default: llvm_unreachable("unreachable builtin case");
 #define IMAGE_TYPE(IMGTYPE, ID, SINGLETON_ID, ACCESS, SUFFIX) \
 		case BuiltinType::ID: return ctx.SINGLETON_ID;
 #include "clang/Basic/OpenCLImageTypes.def"


        


More information about the cfe-commits mailing list