Skip to content

Commit 36fd729

Browse files
authored
[mlir][Quasipolynomial] Fixed -Wunused-variable in GeneratorFunction.h (#76419)
``` llvm-project/mlir/lib/Analysis/Presburger/GeneratingFunction.h:56:28: error: unused variable 'term' [-Werror,-Wunused-variable] 56 | for (const ParamPoint &term : numerators) | ^~~~ 1 error generated. ```
1 parent ce0c149 commit 36fd729

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/lib/Analysis/Presburger/GeneratingFunction.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ class GeneratingFunction {
5353
std::vector<ParamPoint> nums,
5454
std::vector<std::vector<Point>> dens)
5555
: numParam(numParam), signs(signs), numerators(nums), denominators(dens) {
56+
#ifndef NDEBUG
5657
for (const ParamPoint &term : numerators)
5758
assert(term.getNumColumns() == numParam + 1 &&
5859
"dimensionality of numerator exponents does not match number of "
5960
"parameters!");
61+
#endif // NDEBUG
6062
}
6163

6264
unsigned getNumParams() { return numParam; }

0 commit comments

Comments
 (0)