projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1b6d1b
)
Debug Info: Update isScope to make sure DIType is a scope and
author
Manman Ren
<manman.ren@gmail.com>
Mon, 9 Sep 2013 19:00:55 +0000
(19:00 +0000)
committer
Manman Ren
<manman.ren@gmail.com>
Mon, 9 Sep 2013 19:00:55 +0000
(19:00 +0000)
TAG_file_type is also a scope.
llvm-svn: 190321
llvm/lib/IR/DebugInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/DebugInfo.cpp
b/llvm/lib/IR/DebugInfo.cpp
index
5828a3f
..
d0667cd
100644
(file)
--- 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