]> granicus.if.org Git - clang/commitdiff
Add an assert so that new builtins do not sneak without proper debug info.
authorDevang Patel <dpatel@apple.com>
Mon, 12 Sep 2011 18:24:46 +0000 (18:24 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 12 Sep 2011 18:24:46 +0000 (18:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139514 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 0b2bb61e90183f57fe3ae7e0343a8aee6acbf791..5770764dfa0379a7b70b44f81b2505450cad387a 100644 (file)
@@ -290,6 +290,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
   const char *BTName = NULL;
   switch (BT->getKind()) {
   default:
+    assert(0 && "Unexpected builtin");
+    return llvm::DIType();
   case BuiltinType::Void:
     return llvm::DIType();
   case BuiltinType::ObjCClass: