From: Devang Patel Date: Mon, 12 Sep 2011 18:24:46 +0000 (+0000) Subject: Add an assert so that new builtins do not sneak without proper debug info. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d3aa19232cef951193e087b8d11ae9fe02be69d;p=clang 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 0b2bb61e90..5770764dfa 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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: