[mlir][arith] Fix unused variable warning. NFC.

This commit is contained in:
Jakub Kuderski 2022-09-09 17:17:50 -04:00
parent 1b988ff092
commit bcd3445641
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ static Value constructResultVector(ConversionPatternRewriter &rewriter,
Location loc, VectorType resultType,
ValueRange resultComponents) {
llvm::ArrayRef<int64_t> resultShape = resultType.getShape();
(void)resultShape;
assert(!resultShape.empty() && "Result expected to have dimentions");
assert(resultShape.back() == static_cast<int64_t>(resultComponents.size()) &&
"Wrong number of result components");