From 3d3aa19232cef951193e087b8d11ae9fe02be69d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 12 Sep 2011 18:24:46 +0000 Subject: [PATCH] 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 --- lib/CodeGen/CGDebugInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.50.1