mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
[opaque pointer type] Track explicit GEP pointee type through in-memory IR
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -400,5 +400,8 @@ void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap,
|
||||
}
|
||||
if (auto *AI = dyn_cast<AllocaInst>(I))
|
||||
AI->setAllocatedType(TypeMapper->remapType(AI->getAllocatedType()));
|
||||
if (auto *GEP = dyn_cast<GetElementPtrInst>(I))
|
||||
GEP->setSourceElementType(
|
||||
TypeMapper->remapType(GEP->getSourceElementType()));
|
||||
I->mutateType(TypeMapper->remapType(I->getType()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user