diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-27 22:51:01 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-06-27 22:51:01 +0000 |
| commit | 5c5e6179a06b5283d3952c16f0deab8a010f23aa (patch) | |
| tree | d235c2091a3ebddfa0d395e3de0a726addc4520c | |
| parent | a4a47cb97bc0fdfdec5f2170787e7dd83de08013 (diff) | |
| download | bcm5719-llvm-5c5e6179a06b5283d3952c16f0deab8a010f23aa.tar.gz bcm5719-llvm-5c5e6179a06b5283d3952c16f0deab8a010f23aa.zip | |
Use the zero-argument DIBuilder::createNullPtrType in Clang.
Differential Revision: http://llvm-reviews.chandlerc.com/D1051
llvm-svn: 185115
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 | ||||
| -rw-r--r-- | clang/test/CodeGenCXX/debug-info-nullptr.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index d191073958c..53fa4a4e8f1 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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/clang/test/CodeGenCXX/debug-info-nullptr.cpp b/clang/test/CodeGenCXX/debug-info-nullptr.cpp index 42e9741d196..ef9b618fdb3 100644 --- a/clang/test/CodeGenCXX/debug-info-nullptr.cpp +++ b/clang/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)] |

