mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
[opaque pointer type] More GEP IRBuilder API migrations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234064 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1214,7 +1214,8 @@ void DFSanFunction::storeShadow(Value *Addr, uint64_t Size, uint64_t Align,
|
||||
Value *ShadowVecAddr =
|
||||
IRB.CreateBitCast(ShadowAddr, PointerType::getUnqual(ShadowVecTy));
|
||||
do {
|
||||
Value *CurShadowVecAddr = IRB.CreateConstGEP1_32(ShadowVecAddr, Offset);
|
||||
Value *CurShadowVecAddr =
|
||||
IRB.CreateConstGEP1_32(ShadowVecTy, ShadowVecAddr, Offset);
|
||||
IRB.CreateAlignedStore(ShadowVec, CurShadowVecAddr, ShadowAlign);
|
||||
Size -= ShadowVecSize;
|
||||
++Offset;
|
||||
@ -1222,7 +1223,8 @@ void DFSanFunction::storeShadow(Value *Addr, uint64_t Size, uint64_t Align,
|
||||
Offset *= ShadowVecSize;
|
||||
}
|
||||
while (Size > 0) {
|
||||
Value *CurShadowAddr = IRB.CreateConstGEP1_32(ShadowAddr, Offset);
|
||||
Value *CurShadowAddr =
|
||||
IRB.CreateConstGEP1_32(DFS.ShadowTy, ShadowAddr, Offset);
|
||||
IRB.CreateAlignedStore(Shadow, CurShadowAddr, ShadowAlign);
|
||||
--Size;
|
||||
++Offset;
|
||||
|
Reference in New Issue
Block a user