diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 23:48:50 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-15 23:48:50 +0000 |
| commit | b74702308122108651142c39ed75f3163f484401 (patch) | |
| tree | 89d342bb2649160e72df214bee56677bab922242 /clang | |
| parent | 8b7206250ff908899303e768d9d770a59367df0d (diff) | |
| download | bcm5719-llvm-b74702308122108651142c39ed75f3163f484401.tar.gz bcm5719-llvm-b74702308122108651142c39ed75f3163f484401.zip | |
DebugInfo: Prepare for LLVM change removing DIType::isValid()
This is being replaced with a null check.
llvm-svn: 235058
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index ed47fcad87d..b4d55476c70 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1400,7 +1400,7 @@ llvm::DIArray CGDebugInfo::CollectCXXTemplateParams( /// getOrCreateVTablePtrType - Return debug info descriptor for vtable. llvm::DIType CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile Unit) { - if (VTablePtrType.isValid()) + if (VTablePtrType) return VTablePtrType; ASTContext &Context = CGM.getContext(); @@ -1717,7 +1717,7 @@ llvm::DIType CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty, if (SClass) { llvm::DIType SClassTy = getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); - if (!SClassTy.isValid()) + if (!SClassTy) return llvm::DIType(); llvm::DIType InhTag = DBuilder.createInheritance(RealDecl, SClassTy, 0, 0); @@ -1746,7 +1746,7 @@ llvm::DIType CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty, for (ObjCIvarDecl *Field = ID->all_declared_ivar_begin(); Field; Field = Field->getNextIvar(), ++FieldNo) { llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit); - if (!FieldTy.isValid()) + if (!FieldTy) return llvm::DIType(); StringRef FieldName = Field->getName(); |

