[PDL] fix unused variable warning in Release builds
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Nov 2021 13:11:29 +0000 (14:11 +0100)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 26 Nov 2021 13:11:58 +0000 (14:11 +0100)
mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp

index eef8f3a..2466a80 100644 (file)
@@ -491,6 +491,7 @@ void visitUpward(std::vector<PositionalPredicate> &predList, OpIndex opIndex,
         // cheaper to start the traversal at this value rather than at the
         // `connector`, violating the optimality of our spanning tree.
         bool inserted = valueToPosition.try_emplace(value, opPos).second;
+        (void)inserted;
         assert(inserted && "duplicate upward visit");
 
         // Obtain the tree predicates at the current value.