From: Devang Patel Date: Wed, 31 Aug 2011 18:04:31 +0000 (+0000) Subject: After r138010, subroutine type does not have context info. Update type verifier accor... X-Git-Tag: android-x86-6.0-r1~928^2~1741 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=b71541a2db814019c4c7a54fa3700b54b263489e;p=android-x86%2Fexternal-llvm.git After r138010, subroutine type does not have context info. Update type verifier accordingly. This fixes ptype.exp gdb testsuite regressions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138869 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 7935fadb2fa..b050227bc84 100644 --- a/lib/Analysis/DebugInfo.cpp +++ b/lib/Analysis/DebugInfo.cpp @@ -367,6 +367,7 @@ bool DIType::Verify() const { Tag != dwarf::DW_TAG_reference_type && Tag != dwarf::DW_TAG_restrict_type && Tag != dwarf::DW_TAG_vector_type && Tag != dwarf::DW_TAG_array_type && Tag != dwarf::DW_TAG_enumeration_type + && Tag != dwarf::DW_TAG_subroutine_type && getFilename().empty()) return false; return true;