Skip to content

Commit 5a5f20e

Browse files
[mlir] Fix build after #116470
1 parent 04ab599 commit 5a5f20e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,8 @@ LogicalResult ConversionPatternRewriterImpl::remapValues(
12041204
// TODO: This is a 1:N conversion. The conversion value mapping does not
12051205
// store such materializations yet. If the types of the most recently
12061206
// mapped values do not match, build a target materialization.
1207-
if (TypeRange(unpacked) == legalTypes) {
1207+
ValueRange unpackedRange(unpacked);
1208+
if (TypeRange(unpackedRange) == legalTypes) {
12081209
remapped.push_back(std::move(unpacked));
12091210
continue;
12101211
}

0 commit comments

Comments
 (0)