mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
Fix bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ddad6f277
commit
408e72df50
@ -274,6 +274,7 @@ bool ExpressionConvertableToType(Value *V, const Type *Ty,
|
|||||||
//
|
//
|
||||||
if (GEP->getNumOperands() == 2 &&
|
if (GEP->getNumOperands() == 2 &&
|
||||||
GEP->getOperand(1)->getType() == Type::LongTy &&
|
GEP->getOperand(1)->getType() == Type::LongTy &&
|
||||||
|
PTy->getElementType()->isSized() &&
|
||||||
TD.getTypeSize(PTy->getElementType()) ==
|
TD.getTypeSize(PTy->getElementType()) ==
|
||||||
TD.getTypeSize(GEP->getType()->getElementType())) {
|
TD.getTypeSize(GEP->getType()->getElementType())) {
|
||||||
const PointerType *NewSrcTy = PointerType::get(PVTy);
|
const PointerType *NewSrcTy = PointerType::get(PVTy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user