FullSourceLoc L(S->getLocStart(), BR.getSourceManager());
- if (VD->getType()->isPointerLikeType()) {
+ if (VD->getType()->isPointerType() || VD->getType()->isReferenceType()) {
std::string msg = "'" + std::string(VD->getNameAsString()) +
"' now aliases '" + MostRecent->getNameAsString() + "'";
} else if (const EnumType *ET = Ty->getAsEnumType()) {
// Classify the underlying integer type.
classify(ET->getDecl()->getIntegerType(), Context, OffsetBase, Lo, Hi);
- } else if (Ty->isPointerLikeType() || Ty->isBlockPointerType() ||
- Ty->isObjCQualifiedIdType() ||
+ } else if (Ty->isPointerType() || Ty->isReferenceType() ||
+ Ty->isBlockPointerType() || Ty->isObjCQualifiedIdType() ||
Ty->isObjCQualifiedInterfaceType()) {
Current = Integer;
} else if (const VectorType *VT = Ty->getAsVectorType()) {
bool CodeGenFunction::hasAggregateLLVMType(QualType T) {
// FIXME: Use positive checks instead of negative ones to be more
// robust in the face of extension.
- return !isObjCPointerType(T) &&!T->isRealType() && !T->isPointerLikeType() &&
- !T->isVoidType() && !T->isVectorType() && !T->isFunctionType() &&
+ return !isObjCPointerType(T) &&!T->isRealType() && !T->isPointerType() &&
+ !T->isReferenceType() && !T->isVoidType() && !T->isVectorType() && !T->isFunctionType() &&
!T->isBlockPointerType();
}