From 4c4f4dd3f894a0f7a20df8b9696ffe22ab388821 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Mon, 16 Dec 2019 09:34:45 -0500 Subject: [PATCH] Silence an MSVC "not all control paths" diagnostic; NFC. --- clang/include/clang/AST/TypeProperties.td | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/include/clang/AST/TypeProperties.td b/clang/include/clang/AST/TypeProperties.td index 8fa4e4b..caa5835 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" -- 2.7.4