diff options
| author | Devang Patel <dpatel@apple.com> | 2011-09-14 23:14:14 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-09-14 23:14:14 +0000 |
| commit | ecaf9ac0bbe7f3d5e4040f3cdfe4b5ab403e2507 (patch) | |
| tree | a40d9942bd8e8dead46384c572bec828d73fed44 /clang/lib/CodeGen | |
| parent | 04d6d478650503e74d2f7e8337e6c2b381ba1bc7 (diff) | |
| download | bcm5719-llvm-ecaf9ac0bbe7f3d5e4040f3cdfe4b5ab403e2507.tar.gz bcm5719-llvm-ecaf9ac0bbe7f3d5e4040f3cdfe4b5ab403e2507.zip | |
Emit debug info for c++0x nullptr.
llvm-svn: 139752
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 5061e2e8547..919c5f9940a 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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: |

