forked from OSchip/llvm-project
[mlir][arith] Fix unused variable warning. NFC.
This commit is contained in:
parent
1b988ff092
commit
bcd3445641
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue