1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-svn: 5264
This commit is contained in:
Chris Lattner 2003-01-14 19:04:43 +00:00
parent 0c35443367
commit 95583742c4

View File

@ -274,6 +274,7 @@ bool ExpressionConvertableToType(Value *V, const Type *Ty,
//
if (GEP->getNumOperands() == 2 &&
GEP->getOperand(1)->getType() == Type::LongTy &&
PTy->getElementType()->isSized() &&
TD.getTypeSize(PTy->getElementType()) ==
TD.getTypeSize(GEP->getType()->getElementType())) {
const PointerType *NewSrcTy = PointerType::get(PVTy);