aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-09-14 23:14:14 +0000
committerDevang Patel <dpatel@apple.com>2011-09-14 23:14:14 +0000
commitf60dca355d3e754b7a51726c7455d1e7583a65ba (patch)
treecc15e61677894cc5f980436e952f636b1a0e7dcd /lib/CodeGen/CGDebugInfo.cpp
parentde8a9050d79d66325a18168a0994fed125a7790d (diff)
Emit debug info for c++0x nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 5061e2e854..919c5f9940 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -302,8 +302,8 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) {
assert(0 && "Unexpected builtin type UnknownAny");
return llvm::DIType();
case BuiltinType::NullPtr:
- assert(0 && "Unexpected builtin type NullPtr");
- return llvm::DIType();
+ return DBuilder.
+ createNullPtrType(BT->getName(CGM.getContext().getLangOptions()));
case BuiltinType::Void:
return llvm::DIType();
case BuiltinType::ObjCClass: