Skip to content

Commit

Permalink
Replace getInt8PtrTy which has now been removed from upstream LLVM
Browse files Browse the repository at this point in the history
This function was changed to return just getPtrTy some time ago in upstream
LLVM, but the function was left in place to assist updating.

The upstream function has now been removed with the instruction that anything
using the getInt8PtrTy builder function should switch to getPtrTy.

The code here is still required to work with typed pointers, so it is updated to
work in both cases.
  • Loading branch information
dstutt committed Dec 4, 2023
1 parent 39c5ac6 commit b7ab88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/continuations/lib/DXILCont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Value *llvm::continuationStackOffsetToPtr(IRBuilder<> &B, Value *Offset) {
// Stack lives in global memory, so add the base address
assert(*StackAddrspace == ContStackAddrspace::Global &&
"Unexpected address space of the continuation stack");
auto *PtrTy = B.getInt8PtrTy(static_cast<uint32_t>(*StackAddrspace));
auto *PtrTy = B.getInt8Ty()->getPointerTo(static_cast<uint32_t>(*StackAddrspace));
Value *BaseAddr = B.CreateCall(getContinuationStackGlobalMemBase(*M));
BaseAddr = B.CreateIntToPtr(BaseAddr, PtrTy);

Expand Down

0 comments on commit b7ab88b

Please sign in to comment.