Add an assert so that new builtins do not sneak without proper debug info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139514 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 0b2bb61..5770764 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -290,6 +290,8 @@
const char *BTName = NULL;
switch (BT->getKind()) {
default:
+ assert(0 && "Unexpected builtin");
+ return llvm::DIType();
case BuiltinType::Void:
return llvm::DIType();
case BuiltinType::ObjCClass: