Skip to content

Commit 432328e

Browse files
[LoongArch] Fix a warning
This patch fixes: llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp:561:7: error: unused variable 'ScalarSizeInBits' [-Werror,-Wunused-variable]
1 parent 702c38e commit 432328e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ static void computeZeroableShuffleElements(ArrayRef<int> Mask, SDValue V1,
560560
int VectorSizeInBits = V1.getValueSizeInBits();
561561
int ScalarSizeInBits = VectorSizeInBits / Size;
562562
assert(!(VectorSizeInBits % ScalarSizeInBits) && "Illegal shuffle mask size");
563+
(void)ScalarSizeInBits;
563564

564565
for (int i = 0; i < Size; ++i) {
565566
int M = Mask[i];

0 commit comments

Comments
 (0)