Skip to content

[mlir][Transforms] Fix build #153447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2025
Merged

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