mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
[opaque pointer type] More GEP API migrations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1568,10 +1568,11 @@ void DFSanVisitor::visitCallSite(CallSite CS) {
|
||||
ArrayType *VarArgArrayTy = ArrayType::get(DFSF.DFS.ShadowTy, VarArgSize);
|
||||
AllocaInst *VarArgShadow =
|
||||
new AllocaInst(VarArgArrayTy, "", DFSF.F->getEntryBlock().begin());
|
||||
Args.push_back(IRB.CreateConstGEP2_32(VarArgShadow, 0, 0));
|
||||
Args.push_back(IRB.CreateConstGEP2_32(VarArgArrayTy, VarArgShadow, 0, 0));
|
||||
for (unsigned n = 0; i != e; ++i, ++n) {
|
||||
IRB.CreateStore(DFSF.getShadow(*i),
|
||||
IRB.CreateConstGEP2_32(VarArgShadow, 0, n));
|
||||
IRB.CreateStore(
|
||||
DFSF.getShadow(*i),
|
||||
IRB.CreateConstGEP2_32(VarArgArrayTy, VarArgShadow, 0, n));
|
||||
Args.push_back(*i);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user