diff --git a/mlir/lib/IR/PatternMatch.cpp b/mlir/lib/IR/PatternMatch.cpp --- a/mlir/lib/IR/PatternMatch.cpp +++ b/mlir/lib/IR/PatternMatch.cpp @@ -300,7 +300,7 @@ // Replace all of the successor arguments with the provided values. for (auto it : llvm::zip(source->getArguments(), argValues)) - std::get<0>(it).replaceAllUsesWith(std::get<1>(it)); + replaceAllUsesWith(std::get<0>(it), std::get<1>(it)); // Splice the operations of the 'source' block into the 'dest' block and erase // it.