Skip to content

Commit f46c1d6

Browse files
[PowerPC] Fix a warning
This patch fixes: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:9588:16: error: unused variable 'NumOps' [-Werror,-Wunused-variable]
1 parent 5224a17 commit f46c1d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9585,8 +9585,7 @@ static bool isValidSplatLoad(const PPCSubtarget &Subtarget, const SDValue &Op,
95859585
}
95869586

95879587
bool isValidMtVsrBmi(APInt &BitMask, BuildVectorSDNode &BVN) {
9588-
unsigned int NumOps = BVN.getNumOperands();
9589-
assert(NumOps > 0 && "Unexpected 0-size build vector");
9588+
assert(BVN.getNumOperands() > 0 && "Unexpected 0-size build vector");
95909589

95919590
BitMask.clearAllBits();
95929591
EVT VT = BVN.getValueType(0);

0 commit comments

Comments
 (0)