summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-09-12 18:24:46 +0000
committerDevang Patel <dpatel@apple.com>2011-09-12 18:24:46 +0000
commit33e097b69919c6ce003006d05e096080dfd10a3b (patch)
tree1f44b212b32a1c6fb959714837e5c87a7040e643
parentba15240e8364f0d6b5b36a0084515889078c6162 (diff)
downloadbcm5719-llvm-33e097b69919c6ce003006d05e096080dfd10a3b.tar.gz
bcm5719-llvm-33e097b69919c6ce003006d05e096080dfd10a3b.zip
Add an assert so that new builtins do not sneak without proper debug info.
llvm-svn: 139514
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 0b2bb61e901..5770764dfa0 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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:
OpenPOWER on IntegriCloud