From cb21505064b3377e56a0b7cc21fa3435fbca885d Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Fri, 24 Jul 2015 19:52:18 +0000 Subject: [PATCH] Verifier: Remove unnecessary references to DW_TAG_subroutine_type, NFC 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 | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 2a0a4ff393e..a970cf18163 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -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); -- 2.34.1