summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-12-19 22:15:09 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-12-19 22:15:09 +0000
commite8270225a29d22c40e4aee105229d64c7329aeee (patch)
tree4ba097b2cde643c83924f9d56916e77fde2ae343 /llvm/lib/IR/DebugInfo.cpp
parent5a0e50cd87840b9f326e88d3b35c04c3c3b4c76b (diff)
downloadbcm5719-llvm-e8270225a29d22c40e4aee105229d64c7329aeee.tar.gz
bcm5719-llvm-e8270225a29d22c40e4aee105229d64c7329aeee.zip
Remove isSubroutineType test for isCompositeType, getTag() is enough.
llvm-svn: 224621
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index c99d885a668..330d5e1d7e6 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -166,7 +166,7 @@ uint64_t DIExpression::getPieceSize() const {
//===----------------------------------------------------------------------===//
bool DIDescriptor::isSubroutineType() const {
- return isCompositeType() && getTag() == dwarf::DW_TAG_subroutine_type;
+ return DbgNode && getTag() == dwarf::DW_TAG_subroutine_type;
}
bool DIDescriptor::isBasicType() const {
OpenPOWER on IntegriCloud