diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-24 00:54:36 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-24 00:54:36 +0000 |
commit | bf7644a27e517aeb24ed999a7444ab971d70693d (patch) | |
tree | ff2fb6dc26a58944de41d92cb2ee1b1cd6a71c7c /lib/IR | |
parent | e389cc5f0c16dc3a41af01c95ce5a206cd0c462b (diff) | |
download | llvm-bf7644a27e517aeb24ed999a7444ab971d70693d.tar.gz llvm-bf7644a27e517aeb24ed999a7444ab971d70693d.tar.bz2 llvm-bf7644a27e517aeb24ed999a7444ab971d70693d.tar.xz |
Add a fixme and reformat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index b611f458c0..c42a9a377f 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -437,18 +437,17 @@ bool DIObjCProperty::Verify() const { bool DIType::Verify() const { if (!isType()) return false; + // FIXME: Sink this into the various subclass verifies. unsigned Tag = getTag(); if (!isBasicType() && Tag != dwarf::DW_TAG_const_type && Tag != dwarf::DW_TAG_volatile_type && Tag != dwarf::DW_TAG_pointer_type && Tag != dwarf::DW_TAG_ptr_to_member_type && Tag != dwarf::DW_TAG_reference_type && Tag != dwarf::DW_TAG_rvalue_reference_type && - Tag != dwarf::DW_TAG_restrict_type && - Tag != dwarf::DW_TAG_array_type && + Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_array_type && Tag != dwarf::DW_TAG_enumeration_type && Tag != dwarf::DW_TAG_subroutine_type && - Tag != dwarf::DW_TAG_inheritance && - Tag != dwarf::DW_TAG_friend && + Tag != dwarf::DW_TAG_inheritance && Tag != dwarf::DW_TAG_friend && getFilename().empty()) return false; // DIType is abstract, it should be a BasicType, a DerivedType or |