[Mlir-commits] [mlir] 1b0312d - [PDL] fix unused variable warning in Release builds
Benjamin Kramer
llvmlistbot at llvm.org
Fri Nov 26 05:12:36 PST 2021
Author: Benjamin Kramer
Date: 2021-11-26T14:11:58+01:00
New Revision: 1b0312d2809701dd766dd3705b460362653bffcf
URL: https://github.com/llvm/llvm-project/commit/1b0312d2809701dd766dd3705b460362653bffcf
DIFF: https://github.com/llvm/llvm-project/commit/1b0312d2809701dd766dd3705b460362653bffcf.diff
LOG: [PDL] fix unused variable warning in Release builds
Added:
Modified:
mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
index eef8f3afd5bc..2466a80d0b64 100644
--- a/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
+++ b/mlir/lib/Conversion/PDLToPDLInterp/PredicateTree.cpp
@@ -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.
More information about the Mlir-commits
mailing list