diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-08 18:25:48 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-08 18:25:48 +0000 |
commit | d8cc5d5256e79a74188dfef5a12d43127330dad3 (patch) | |
tree | 101754d10f06c31c00dc93aacdba0b2b466ce139 /lib/Target/PIC16 | |
parent | fab4a25d46cdd178c20e6a8029a2eed10f61f0ba (diff) | |
download | external_llvm-d8cc5d5256e79a74188dfef5a12d43127330dad3.zip external_llvm-d8cc5d5256e79a74188dfef5a12d43127330dad3.tar.gz external_llvm-d8cc5d5256e79a74188dfef5a12d43127330dad3.tar.bz2 |
Avoid using DIDescriptor.isNull().
This is a first step towards eliminating unncessary constructor checks in light weight DIDescriptor wrappers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-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 877e4ff..da4e027 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 ) { |