Add an assert so that new builtins do not sneak without proper debug info.

llvm-svn: 139514
This commit is contained in:
Devang Patel 2011-09-12 18:24:46 +00:00
parent ba15240e83
commit 33e097b699
1 changed files with 2 additions and 0 deletions

View 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: