Skip to content

Commit b3fc08a

Browse files
committed
[mlir] fix dialect conversion with no type converter
1 parent 3f1486f commit b3fc08a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mlir/lib/Transforms/Utils/DialectConversion.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,11 @@ ConversionValueMapping::lookupOrDefault(Value from,
209209
}
210210
}
211211
if (next != current) {
212-
// If at least one value was replaced, continue the lookup from there.
213212
current = std::move(next);
213+
// Special case 1; return the most recently mapped values.
214+
if (desiredTypes.empty())
215+
break;
216+
// If at least one value was replaced, continue the lookup from there.
214217
continue;
215218
}
216219

0 commit comments

Comments
 (0)