Skip to content

Commit

Permalink
Add assertion for load ptr(7),ptr(7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimzhao authored and amdrexu committed Dec 16, 2023
1 parent 677f8ec commit d10d75f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lgc/patch/PatchBufferOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,7 @@ Value *BufferOpLowering::replaceLoadStore(Instruction &inst) {
assert(newInst);

if (type->isPointerTy()) {
assert(type->getPointerAddressSpace() != ADDR_SPACE_BUFFER_FAT_POINTER);
newInst = m_builder.CreateBitCast(newInst, m_builder.getIntNTy(bytesToHandle * 8));
copyMetadata(newInst, &inst);
newInst = m_builder.CreateIntToPtr(newInst, type);
Expand Down

0 comments on commit d10d75f

Please sign in to comment.