Searched refs:OldTy (Results 1 – 6 of 6) sorted by relevance
261 const ObjCObjectPointerType *OldTy = in getBetterObjCType() local263 if (!OldTy) in getBetterObjCType()267 if (OldTy->isObjCIdType() && !NewTy->isObjCIdType()) in getBetterObjCType()272 const ObjCInterfaceDecl *FromI = OldTy->getInterfaceDecl(); in getBetterObjCType()
1846 static bool canConvertValue(const DataLayout &DL, Type *OldTy, Type *NewTy) { in canConvertValue() argument1847 if (OldTy == NewTy) in canConvertValue()1849 if (IntegerType *OldITy = dyn_cast<IntegerType>(OldTy)) in canConvertValue()1853 if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy)) in canConvertValue()1855 if (!NewTy->isSingleValueType() || !OldTy->isSingleValueType()) in canConvertValue()1860 OldTy = OldTy->getScalarType(); in canConvertValue()1862 if (NewTy->isPointerTy() || OldTy->isPointerTy()) { in canConvertValue()1863 if (NewTy->isPointerTy() && OldTy->isPointerTy()) in canConvertValue()1865 if (NewTy->isIntegerTy() || OldTy->isIntegerTy()) in canConvertValue()1881 Type *OldTy = V->getType(); in convertValue() local[all …]
881 StructType *OldTy = cast<StructType>(ATy->getElementType()); in upgradeGlobalArray() local882 assert(OldTy->getNumElements() == 2 && "Expected to upgrade from 2 elements"); in upgradeGlobalArray()886 Type *Tys[3] = {OldTy->getElementType(0), OldTy->getElementType(1), in upgradeGlobalArray()
3134 QualType OldTy; in handleModeAttr() local3136 OldTy = TD->getUnderlyingType(); in handleModeAttr()3138 OldTy = VD->getType(); in handleModeAttr()3145 if (!OldTy->getAs<BuiltinType>() && !OldTy->isComplexType()) in handleModeAttr()3148 if (!OldTy->isIntegralOrEnumerationType()) in handleModeAttr()3151 if (!OldTy->isComplexType()) in handleModeAttr()3154 if (!OldTy->isFloatingType()) in handleModeAttr()3171 OldTy->isSignedIntegerType()); in handleModeAttr()
12899 QualType OldTy = Old->getType()->getAs<FunctionType>()->getReturnType(); in CheckOverridingFunctionReturnType() local12901 if (Context.hasSameType(NewTy, OldTy) || in CheckOverridingFunctionReturnType()12902 NewTy->isDependentType() || OldTy->isDependentType()) in CheckOverridingFunctionReturnType()12910 if (const PointerType *OldPT = OldTy->getAs<PointerType>()) { in CheckOverridingFunctionReturnType()12915 if (const ReferenceType *OldRT = OldTy->getAs<ReferenceType>()) { in CheckOverridingFunctionReturnType()12927 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()12951 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()12976 if (NewTy.getLocalCVRQualifiers() != OldTy.getLocalCVRQualifiers()) { in CheckOverridingFunctionReturnType()12979 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()12991 << New->getDeclName() << NewTy << OldTy in CheckOverridingFunctionReturnType()
1073 types::ID OldTy = Ty; in BuildInputs() local1076 if (Ty != OldTy) in BuildInputs()1078 << getTypeName(OldTy) << getTypeName(Ty); in BuildInputs()