diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-09-09 19:00:55 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-09-09 19:00:55 +0000 |
commit | 626a4b785b8ef14bbd4f763a01396df3c6a758f7 (patch) | |
tree | 59d67957a8e38b183189b306a7f7898f3302c5f4 /lib/IR/DebugInfo.cpp | |
parent | 2dd3afc5e600b4585e4c2cd08f9a35fd1cf0df61 (diff) | |
download | external_llvm-626a4b785b8ef14bbd4f763a01396df3c6a758f7.zip external_llvm-626a4b785b8ef14bbd4f763a01396df3c6a758f7.tar.gz external_llvm-626a4b785b8ef14bbd4f763a01396df3c6a758f7.tar.bz2 |
Debug Info: Update isScope to make sure DIType is a scope and
TAG_file_type is also a scope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 5828a3f..d0667cd 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -246,11 +246,12 @@ bool DIDescriptor::isScope() const { case dwarf::DW_TAG_lexical_block: case dwarf::DW_TAG_subprogram: case dwarf::DW_TAG_namespace: + case dwarf::DW_TAG_file_type: return true; default: break; } - return false; + return isType(); } /// isTemplateTypeParameter - Return true if the specified tag is |