diff options
author | Devang Patel <dpatel@apple.com> | 2011-08-31 18:04:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-08-31 18:04:31 +0000 |
commit | b71541a2db814019c4c7a54fa3700b54b263489e (patch) | |
tree | adc23df446add5adfd7213da07b6ac3420bd6e26 /lib/Analysis/DebugInfo.cpp | |
parent | 4d3f3294535a3b622c715f2d9675d4f3e86c3378 (diff) |
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
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | lib/Analysis/DebugInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp index 7935fadb2f..b050227bc8 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; |