================
@@ -1478,34 +1497,12 @@ Value 
ConversionPatternRewriterImpl::findOrBuildReplacementValue(
   }
   Value castValue = buildUnresolvedMaterialization(
       MaterializationKind::Source, computeInsertPoint(repl), value.getLoc(),
-      /*valueToMap=*/value, /*inputs=*/repl, /*outputType=*/value.getType(),
-      /*originalType=*/Type(), converter);
-  mapping.map(value, castValue);
+      /*valuesToMap=*/{value}, /*inputs=*/repl, /*outputType=*/value.getType(),
+      /*originalType=*/Type(), converter)[0];
----------------
zero9178 wrote:

```suggestion
      /*originalType=*/Type(), converter).front();
```

https://github.com/llvm/llvm-project/pull/116524
_______________________________________________
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