Skip to content

Conversation

matthias-springer
Copy link
Member

Fix build after #151865.

@llvmbot llvmbot added mlir:core MLIR Core Infrastructure mlir labels Aug 13, 2025
@llvmbot
Copy link
Member

llvmbot commented Aug 13, 2025

@llvm/pr-subscribers-mlir-core

Author: Matthias Springer (matthias-springer)

Changes

Fix build after #151865.


Full diff: https://github.com/llvm/llvm-project/pull/153447.diff

1 Files Affected:

  • (modified) mlir/lib/Transforms/Utils/DialectConversion.cpp (+1-1)
diff --git a/mlir/lib/Transforms/Utils/DialectConversion.cpp b/mlir/lib/Transforms/Utils/DialectConversion.cpp
index 8a98b313b6682..001c13e1ab08c 100644
--- a/mlir/lib/Transforms/Utils/DialectConversion.cpp
+++ b/mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -1785,7 +1785,7 @@ getReplacementValues(ConversionPatternRewriterImpl &impl, ValueRange fromRange,
       continue;
     }
 
-    if (TypeRange(to) == TypeRange(from.getType())) {
+    if (TypeRange(ValueRange(to)) == TypeRange(from.getType())) {
       // The replacement value already has the correct type. Use it directly.
       repls.push_back(to[0]);
       continue;

@llvmbot
Copy link
Member

llvmbot commented Aug 13, 2025

@llvm/pr-subscribers-mlir

Author: Matthias Springer (matthias-springer)

Changes

Fix build after #151865.


Full diff: https://github.com/llvm/llvm-project/pull/153447.diff

1 Files Affected:

  • (modified) mlir/lib/Transforms/Utils/DialectConversion.cpp (+1-1)
diff --git a/mlir/lib/Transforms/Utils/DialectConversion.cpp b/mlir/lib/Transforms/Utils/DialectConversion.cpp
index 8a98b313b6682..001c13e1ab08c 100644
--- a/mlir/lib/Transforms/Utils/DialectConversion.cpp
+++ b/mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -1785,7 +1785,7 @@ getReplacementValues(ConversionPatternRewriterImpl &impl, ValueRange fromRange,
       continue;
     }
 
-    if (TypeRange(to) == TypeRange(from.getType())) {
+    if (TypeRange(ValueRange(to)) == TypeRange(from.getType())) {
       // The replacement value already has the correct type. Use it directly.
       repls.push_back(to[0]);
       continue;

@matthias-springer matthias-springer merged commit c888add into main Aug 13, 2025
10 of 12 checks passed
@matthias-springer matthias-springer deleted the users/matthias-springer/fix_build branch August 13, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mlir:core MLIR Core Infrastructure mlir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants