Skip to content

Commit 0c3f344

Browse files
Fix build failures from LLVM commit llvm/llvm-project@0ea4fb9
Signed-off-by: Whitney Tsang <[email protected]>
1 parent 9a9a15d commit 0c3f344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

third_party/intel/lib/TritonIntelGPUToLLVM/LoadStoreOpToLLVM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,8 @@ struct AtomicRMWOpConversion
22402240
auto intPtr = b.ptrtoint(i64_ty, rmwPtr);
22412241
auto lowPtrBits = b.and_(intPtr, b.i64_val(3));
22422242
auto elemIndex = b.trunc(i32_ty, b.lshr(lowPtrBits, b.i64_val(1)));
2243-
auto alignPtr = b.inttoptr(rmwPtr.getType(), b.sub(intPtr, lowPtrBits));
2243+
auto alignPtr =
2244+
b.inttoptr(rmwPtr.getType(), b.sub(intPtr, lowPtrBits).getResult());
22442245
auto firstValInt = b.load(i32_ty, alignPtr, 4, false, false, false, false,
22452246
LLVM::AtomicOrdering::acquire);
22462247

0 commit comments

Comments
 (0)