Skip to content

Commit 96fb3ee

Browse files
committed
Fix signed/unsigned comparison warning. NFCI.
1 parent 7b7ac4b commit 96fb3ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18816,8 +18816,9 @@ static SDValue lowerVECTOR_SHUFFLE(SDValue Op, const X86Subtarget &Subtarget,
1881618816

1881718817
V1 = DAG.getBitcast(VT, Ops[0]);
1881818818
V2 = DAG.getBitcast(VT, Ops[1]);
18819-
assert(Mask.size() == NumElements && "canonicalizeShuffleMaskWithHorizOp "
18820-
"shouldn't alter the shuffle mask size");
18819+
assert(NumElements == (int)Mask.size() &&
18820+
"canonicalizeShuffleMaskWithHorizOp "
18821+
"shouldn't alter the shuffle mask size");
1882118822

1882218823
// Commute the shuffle if it will improve canonicalization.
1882318824
if (canonicalizeShuffleMaskWithCommute(Mask)) {

0 commit comments

Comments
 (0)