}
inline const llvm::APSInt& getMaxValue(QualType T) {
- assert(T->isIntegerType() || T->isPointerType());
- bool isUnsigned = T->isUnsignedIntegerType() || T->isPointerType();
+ assert(T->isIntegerType() || T->isPointerType() || T->isBlockPointerType());
+ bool isUnsigned = T->isUnsignedIntegerType() || T->isPointerType() ||
+ T->isBlockPointerType();
return getValue(llvm::APSInt::getMaxValue(Ctx.getTypeSize(T), isUnsigned));
}
inline const llvm::APSInt& getMinValue(QualType T) {
- assert(T->isIntegerType() || T->isPointerType());
- bool isUnsigned = T->isUnsignedIntegerType() || T->isPointerType();
+ assert(T->isIntegerType() || T->isPointerType() || T->isBlockPointerType());
+ bool isUnsigned = T->isUnsignedIntegerType() || T->isPointerType() ||
+ T->isBlockPointerType();
return getValue(llvm::APSInt::getMinValue(Ctx.getTypeSize(T), isUnsigned));
}