Verifier: Remove unnecessary references to DW_TAG_subroutine_type, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 19:52:18 +0000 (19:52 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 24 Jul 2015 19:52:18 +0000 (19:52 +0000)
Remove unnecessary references to `DW_TAG_subroutine_type` in
`visitDICompositeType()` and `visitDIDerivedTypeBase()`, since
`visitDISubroutineType()` doesn't call either of those (and shouldn't,
since subroutine types are really quite special).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Verifier.cpp

index 2a0a4ff393ed0f931178836e69c2991b4d8d0067..a970cf181639e6dcbb8702341dc32713ce9f6ba1 100644 (file)
@@ -800,7 +800,6 @@ void Verifier::visitDIDerivedTypeBase(const DIDerivedTypeBase &N) {
             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_structure_type ||
             Tag == dwarf::DW_TAG_member || Tag == dwarf::DW_TAG_typedef,
@@ -852,7 +851,6 @@ void Verifier::visitDICompositeType(const DICompositeType &N) {
              N.getTag() == dwarf::DW_TAG_structure_type ||
              N.getTag() == dwarf::DW_TAG_union_type ||
              N.getTag() == dwarf::DW_TAG_enumeration_type ||
-             N.getTag() == dwarf::DW_TAG_subroutine_type ||
              N.getTag() == dwarf::DW_TAG_class_type,
          "invalid tag", &N);