Lines Matching defs:NewTy
2357 Type *NewTy=cast<PointerType>(Ptr->getType())->getElementType();
2360 // from NewTy to Val's type must be legal. If it's not, we can try
2361 // introspecting NewTy to find a legal conversion.
2362 while (!Val->getType()->canLosslesslyBitCastTo(NewTy)) {
2363 // If NewTy is a struct, we can convert the pointer to the struct
2366 if (StructType *STy = dyn_cast<StructType>(NewTy)) {
2367 NewTy = STy->getTypeAtIndex(0U);
2369 IntegerType *IdxTy =IntegerType::get(NewTy->getContext(), 32);
2375 // If we can't improve the situation by introspecting NewTy,
2384 Val = ConstantExpr::getBitCast(Val, NewTy);