- if (const Instruction *I = dyn_cast<CastInst>(V1))
- if (isa<PointerType>(I->getOperand(0)->getType()))
- return alias(I->getOperand(0), V1Size, V2, V2Size);
- if (const Instruction *I = dyn_cast<CastInst>(V2))
- if (isa<PointerType>(I->getOperand(0)->getType()))
- return alias(V1, V1Size, I->getOperand(0), V2Size);
+ if (const BitCastInst *I = dyn_cast<BitCastInst>(V1))
+ return alias(I->getOperand(0), V1Size, V2, V2Size);
+ if (const BitCastInst *I = dyn_cast<BitCastInst>(V2))
+ return alias(V1, V1Size, I->getOperand(0), V2Size);