diff options
author | Devang Patel <dpatel@apple.com> | 2011-09-12 18:24:46 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-09-12 18:24:46 +0000 |
commit | 3d3aa19232cef951193e087b8d11ae9fe02be69d (patch) | |
tree | fc80032cc093659822af5f37d049a77dede9ae24 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 74a292f2bb0129abba4a5de71d6eebf65ce37803 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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: |