Skip to content

Commit 0740653

Browse files
committed
[CMPLRLLVM-63532] Fix context usage in pointer type casting for ESIMD intrinsic calls
1 parent 820970c commit 0740653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/ESIMD/LowerESIMD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ static void translateESIMDIntrinsicCall(CallInst &CI) {
15771577
NewInst = Builder.CreateStore(
15781578
NewCI,
15791579
Builder.CreateBitCast(CastInstruction->getPointerOperand(),
1580-
llvm::PointerType::getUnqual(CI.getContext())));
1580+
llvm::PointerType::getUnqual(NewCI->getContext())));
15811581
} else {
15821582
NewInst = addCastInstIfNeeded(&CI, NewCI);
15831583
}

0 commit comments

Comments
 (0)