From: Peter Collingbourne Date: Thu, 27 Jun 2013 22:51:01 +0000 (+0000) Subject: Use the zero-argument DIBuilder::createNullPtrType in Clang. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24118f5d62f68b18a75db4eb570a0aaf7f4dda97;p=clang Use the zero-argument DIBuilder::createNullPtrType in Clang. Differential Revision: http://llvm-reviews.chandlerc.com/D1051 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185115 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index d191073958..53fa4a4e8f 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -369,8 +369,7 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { case BuiltinType::Dependent: llvm_unreachable("Unexpected builtin type"); case BuiltinType::NullPtr: - return DBuilder. - createNullPtrType(BT->getName(CGM.getLangOpts())); + return DBuilder.createNullPtrType(); case BuiltinType::Void: return llvm::DIType(); case BuiltinType::ObjCClass: diff --git a/test/CodeGenCXX/debug-info-nullptr.cpp b/test/CodeGenCXX/debug-info-nullptr.cpp index 42e9741d19..ef9b618fdb 100644 --- a/test/CodeGenCXX/debug-info-nullptr.cpp +++ b/test/CodeGenCXX/debug-info-nullptr.cpp @@ -4,4 +4,4 @@ void foo() { decltype(nullptr) t = 0; } -// CHECK: [ DW_TAG_unspecified_type ] [nullptr_t] +// CHECK: [ DW_TAG_unspecified_type ] [decltype(nullptr)]