================
@@ -2447,6 +2487,37 @@ LogicalResult 
OperationConverter::convertOperations(ArrayRef<Operation *> ops) {
   } else {
     rewriterImpl.applyRewrites();
   }
+
+  // Gather all unresolved materializations.
+  SmallVector<UnrealizedConversionCastOp> allCastOps;
+  DenseMap<Operation *, UnresolvedMaterializationRewrite *> rewriteMap;
+  for (auto &rewrite : rewriterImpl.rewrites) {
----------------
zero9178 wrote:
```suggestion
  for (std::unique_ptr<IRRewrite> &rewrite : rewriterImpl.rewrites) {
```

https://github.com/llvm/llvm-project/pull/104668
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to