[clang] 081f736 - Fixing a -Wcovered-switch diagnostic and changing tabs to spaces; NFC.
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 16 08:38:40 PST 2019
Author: Aaron Ballman
Date: 2019-12-16T11:38:30-05:00
New Revision: 081f736157dea53735f098165d750abfbbcd96dd
URL: https://github.com/llvm/llvm-project/commit/081f736157dea53735f098165d750abfbbcd96dd
DIFF: https://github.com/llvm/llvm-project/commit/081f736157dea53735f098165d750abfbbcd96dd.diff
LOG: Fixing a -Wcovered-switch diagnostic and changing tabs to spaces; 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 caa5835911c5..76404c8df764 100644
--- a/clang/include/clang/AST/TypeProperties.td
+++ b/clang/include/clang/AST/TypeProperties.td
@@ -690,24 +690,24 @@ let Class = BuiltinType in {
}
def : Creator<[{
- switch (kind) {
- default: llvm_unreachable("unreachable builtin case");
+ switch (kind) {
#define IMAGE_TYPE(IMGTYPE, ID, SINGLETON_ID, ACCESS, SUFFIX) \
- case BuiltinType::ID: return ctx.SINGLETON_ID;
+ case BuiltinType::ID: return ctx.SINGLETON_ID;
#include "clang/Basic/OpenCLImageTypes.def"
#define EXT_OPAQUE_TYPE(EXTTYPE, ID, EXT) \
- case BuiltinType::ID: return ctx.ID##Ty;
+ case BuiltinType::ID: return ctx.ID##Ty;
#include "clang/Basic/OpenCLExtensionTypes.def"
#define SVE_TYPE(NAME, ID, SINGLETON_ID) \
- case BuiltinType::ID: return ctx.SINGLETON_ID;
+ case BuiltinType::ID: return ctx.SINGLETON_ID;
#include "clang/Basic/AArch64SVEACLETypes.def"
#define BUILTIN_TYPE(ID, SINGLETON_ID) \
- case BuiltinType::ID: return ctx.SINGLETON_ID;
+ case BuiltinType::ID: return ctx.SINGLETON_ID;
#include "clang/AST/BuiltinTypes.def"
- }
+ }
+ llvm_unreachable("unreachable builtin case");
}]>;
}
More information about the cfe-commits
mailing list