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 | df060bc3c2c06d07efa93bf8909971d742dd0cec (patch) | |
tree | 8ea7284168df1695ae1ced7cf1256dd69663d351 /llvm/lib/Analysis/DebugInfo.cpp | |
parent | 1ccecbb9d34c51ae5f8eb5ae8bbe0b8d9adc5277 (diff) | |
download | bcm5719-llvm-df060bc3c2c06d07efa93bf8909971d742dd0cec.tar.gz bcm5719-llvm-df060bc3c2c06d07efa93bf8909971d742dd0cec.zip |
After r138010, subroutine type does not have context info. Update type verifier accordingly.
This fixes ptype.exp gdb testsuite regressions.
llvm-svn: 138869
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 7935fadb2fa..b050227bc84 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/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; |