mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[opaque pointer type] Store the value type of an alloca
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236175 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -396,6 +396,9 @@ void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap,
|
||||
Tys.push_back(TypeMapper->remapType(Ty));
|
||||
CS.mutateFunctionType(FunctionType::get(
|
||||
TypeMapper->remapType(I->getType()), Tys, FTy->isVarArg()));
|
||||
} else
|
||||
I->mutateType(TypeMapper->remapType(I->getType()));
|
||||
return;
|
||||
}
|
||||
if (auto *AI = dyn_cast<AllocaInst>(I))
|
||||
AI->setAllocatedType(TypeMapper->remapType(AI->getAllocatedType()));
|
||||
I->mutateType(TypeMapper->remapType(I->getType()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user