Avoids unused function warnings in Release builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230009
91177308-0d34-0410-b5e6-
96231b3b80d8
// Given assumption that V dominates loc, this may be live
return true;
}
// Given assumption that V dominates loc, this may be live
return true;
}
static bool isAggWhichContainsGCPtrType(Type *Ty) {
if (VectorType *VT = dyn_cast<VectorType>(Ty))
return isGCPointerType(VT->getScalarType());
static bool isAggWhichContainsGCPtrType(Type *Ty) {
if (VectorType *VT = dyn_cast<VectorType>(Ty))
return isGCPointerType(VT->getScalarType());
} else if (StructType *ST = dyn_cast<StructType>(Ty)) {
bool UnsupportedType = false;
for (Type *SubType : ST->subtypes())
} else if (StructType *ST = dyn_cast<StructType>(Ty)) {
bool UnsupportedType = false;
for (Type *SubType : ST->subtypes())
- UnsupportedType |= isGCPointerType(SubType) || isAggWhichContainsGCPtrType(SubType);
+ UnsupportedType |=
+ isGCPointerType(SubType) || isAggWhichContainsGCPtrType(SubType);
return UnsupportedType;
} else
return false;
}
return UnsupportedType;
} else
return false;
}
// Conservatively identifies any definitions which might be live at the
// given instruction. The analysis is performed immediately before the
// Conservatively identifies any definitions which might be live at the
// given instruction. The analysis is performed immediately before the