Skip to content

Commit 500d378

Browse files
committed
Fix -Wunused-variable warning, NFC.
1 parent 302e11c commit 500d378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/IR/AttributeDetail.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,8 @@ struct DenseStringElementsAttributeStorage
597597
return KeyTy(ty, data, llvm::hash_value(data), isKnownSplat);
598598

599599
// Handle the simple case of only one element.
600-
size_t numElements = ty.getNumElements();
601-
assert(numElements != 1 && "splat of 1 element should already be detected");
600+
assert(ty.getNumElements() != 1 &&
601+
"splat of 1 element should already be detected");
602602

603603
// Create the initial hash value with just the first element.
604604
const auto &firstElt = data.front();

0 commit comments

Comments
 (0)