diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-08 20:52:55 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-08 20:52:55 +0000 |
commit | 3c91b05d2b1751b9e4e21fd958d358ec463dcd3c (patch) | |
tree | c2ab35e6538f5c1bab0cb971317a571c87c81b93 /lib/Target/PIC16/PIC16DebugInfo.cpp | |
parent | ccb4f2d813380d8cf139062b8c829e4b8b322c0d (diff) |
Avoid using DIDescriptor.isNull().
This is a first step towards eliminating checks in Descriptor constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16DebugInfo.cpp')
-rw-r--r-- | lib/Target/PIC16/PIC16DebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16DebugInfo.cpp b/lib/Target/PIC16/PIC16DebugInfo.cpp index 877e4ffc6d..da4e027876 100644 --- a/lib/Target/PIC16/PIC16DebugInfo.cpp +++ b/lib/Target/PIC16/PIC16DebugInfo.cpp @@ -333,7 +333,7 @@ void PIC16DbgInfo::EmitCompositeTypeDecls(Module &M) { for (DebugInfoFinder::iterator I = DbgFinder.type_begin(), E = DbgFinder.type_end(); I != E; ++I) { DICompositeType CTy(*I); - if (CTy.isNull()) + if (!CTy.Verify()) continue; if (CTy.getTag() == dwarf::DW_TAG_union_type || CTy.getTag() == dwarf::DW_TAG_structure_type ) { |