forked from OSchip/llvm-project
parent
abf49140d4
commit
d896b03e4c
|
@ -253,9 +253,8 @@ static bool containsGCPtrType(Type *Ty) {
|
|||
if (ArrayType *AT = dyn_cast<ArrayType>(Ty))
|
||||
return containsGCPtrType(AT->getElementType());
|
||||
if (StructType *ST = dyn_cast<StructType>(Ty))
|
||||
return std::any_of(
|
||||
ST->subtypes().begin(), ST->subtypes().end(),
|
||||
[](Type *SubType) { return containsGCPtrType(SubType); });
|
||||
return std::any_of(ST->subtypes().begin(), ST->subtypes().end(),
|
||||
containsGCPtrType);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue