Skip to content

Commit

Permalink
Fix getWithSamePointeeType() build issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaojbao authored Jan 3, 2024
1 parent 6ffcf5f commit ee30a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/continuations/lib/ContinuationsUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void llvm::replaceAllPointerUses(IRBuilder<> *Builder, Value *OldPointerValue,
PointerType *NewPtrTy = cast<PointerType>(NewPointerValue->getType());
unsigned NewAS = NewPtrTy->getAddressSpace();
assert(NewAS != OldPtrTy->getAddressSpace());
assert(PointerType::getWithSamePointeeType(OldPtrTy, NewAS) == NewPtrTy);
assert(getWithSamePointeeType(OldPtrTy, NewAS) == NewPtrTy);

OldPointerValue->mutateType(NewPtrTy);

Expand Down

0 comments on commit ee30a48

Please sign in to comment.