Skip to content

Commit dcb468d

Browse files
authored
Fix Coverity issues (#5077)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 097d06f commit dcb468d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/intel/lib/TritonIntelGPUToLLVM/LoadStoreOpToLLVM.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ struct LoadOpToBlockIOConversion
18841884
if (!sizeInfo.isValid())
18851885
return failure();
18861886
auto [tileHeight, tileWidth, numPackedVals, vBlocks, rowDim, colDim,
1887-
regPackedBases] = sizeInfo;
1887+
regPackedBases] = std::move(sizeInfo);
18881888

18891889
Type eltTy = getTypeConverter()->convertType(tensorType.getElementType());
18901890
unsigned elemSizeInBits = eltTy.getIntOrFloatBitWidth();
@@ -2763,7 +2763,7 @@ struct StoreOpToBlockIOConversion
27632763
if (!sizeInfo.isValid())
27642764
return failure();
27652765
auto [tileHeight, tileWidth, numPackedVals, vBlocks, rowDim, colDim,
2766-
regPackedBases] = sizeInfo;
2766+
regPackedBases] = std::move(sizeInfo);
27672767

27682768
Type eltTy = getTypeConverter()->convertType(tensorType.getElementType());
27692769
unsigned elemSizeInBits = eltTy.getIntOrFloatBitWidth();

0 commit comments

Comments
 (0)