Remove isSubroutineType test for isCompositeType, getTag() is enough.

llvm-svn: 224621
This commit is contained in:
Yaron Keren 2014-12-19 22:15:09 +00:00
parent 58a6d7bb13
commit e069d80b3c

View File

@ -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 {