summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-24 19:52:18 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-24 19:52:18 +0000
commitdf9c9ff43bd634cbeda6d18bad3ad003cffd0e0e (patch)
tree3f9b09ee4927aa961b6846d7c0886b288994eb23
parent89c5e6ff490f57016b4f1950d3482b31a9ae099c (diff)
downloadbcm5719-llvm-df9c9ff43bd634cbeda6d18bad3ad003cffd0e0e.tar.gz
bcm5719-llvm-df9c9ff43bd634cbeda6d18bad3ad003cffd0e0e.zip
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). llvm-svn: 243149
-rw-r--r--llvm/lib/IR/Verifier.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 2a0a4ff393e..a970cf18163 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud