[mlir][DialectConversion] Change erroneous return to a continue

This fixes a nasty bug where the loop would return prematurely when
notifying the argument converter that an operation was removed.
This commit is contained in:
River Riddle 2020-02-06 17:55:14 -08:00
parent 7931e8eee3
commit 1eaa31ce0e
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ void ArgConverter::notifyOpRemoved(Operation *op) {
// Check if this block was converted.
auto it = conversionInfo.find(&block);
if (it == conversionInfo.end())
return;
continue;
// Drop all uses of the original arguments and delete the original block.
Block *origBlock = it->second.origBlock;