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 | 473c1988639f5ac9edec7a8b2434c1b01b9b9ae0 (patch) | |
tree | 0c0d533a12d650871d390c2b1bcda038d9b9652b /llvm/lib/IR/DebugInfo.cpp | |
parent | f1b6d1b5388058fe06efd53e35b30cbcf3d716cb (diff) | |
download | bcm5719-llvm-473c1988639f5ac9edec7a8b2434c1b01b9b9ae0.tar.gz bcm5719-llvm-473c1988639f5ac9edec7a8b2434c1b01b9b9ae0.zip |
Debug Info: Update isScope to make sure DIType is a scope and
TAG_file_type is also a scope.
llvm-svn: 190321
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 5828a3fcfa5..d0667cd6db5 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/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 |