Simplify logic by using the appropriate functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adrian Prantl
2013-05-29 17:33:31 +00:00
parent 742671bf8e
commit 88c744083d
2 changed files with 2 additions and 3 deletions

View File

@@ -285,7 +285,7 @@ namespace llvm {
return (getFlags() & FlagStaticMember) != 0;
}
bool isValid() const {
return DbgNode && (isBasicType() || isDerivedType() || isCompositeType());
return DbgNode && isType();
}
/// isUnsignedDIType - Return true if type encoding is unsigned.