Skip to content

Commit

Permalink
[NFC][HWASAN] Use pointercast instead of bitcast
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Apr 30, 2023
1 parent a1cca2e commit d3c37e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ void HWAddressSanitizer::tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag,
IRB.CreateStore(ConstantInt::get(Int8Ty, SizeRemainder),
IRB.CreateConstGEP1_32(Int8Ty, ShadowPtr, ShadowSize));
IRB.CreateStore(JustTag, IRB.CreateConstGEP1_32(
Int8Ty, IRB.CreateBitCast(AI, Int8PtrTy),
Int8Ty, IRB.CreatePointerCast(AI, Int8PtrTy),
AlignedSize - 1));
}
}
Expand Down

0 comments on commit d3c37e2

Please sign in to comment.