mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
Simplify logic by using the appropriate functions.
llvm-svn: 182869
This commit is contained in:
parent
7ef1e78101
commit
b6dada0e6e
@ -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.
|
||||
|
@ -351,9 +351,8 @@ bool DIDescriptor::isImportedEntity() const {
|
||||
|
||||
DIType::DIType(const MDNode *N) : DIScope(N) {
|
||||
if (!N) return;
|
||||
if (!isBasicType() && !isDerivedType() && !isCompositeType()) {
|
||||
if (!isType())
|
||||
DbgNode = 0;
|
||||
}
|
||||
}
|
||||
|
||||
unsigned DIArray::getNumElements() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user