[cfe-commits] r139514 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Devang Patel dpatel at apple.com
Mon Sep 12 11:24:47 PDT 2011


Author: dpatel
Date: Mon Sep 12 13:24:46 2011
New Revision: 139514

URL: http://llvm.org/viewvc/llvm-project?rev=139514&view=rev
Log:
Add an assert so that new builtins do not sneak without proper debug info.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=139514&r1=139513&r2=139514&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Sep 12 13:24:46 2011
@@ -290,6 +290,8 @@
   const char *BTName = NULL;
   switch (BT->getKind()) {
   default:
+    assert(0 && "Unexpected builtin");
+    return llvm::DIType();
   case BuiltinType::Void:
     return llvm::DIType();
   case BuiltinType::ObjCClass:





More information about the cfe-commits mailing list