forked from OSchip/llvm-project
[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:
parent
7931e8eee3
commit
1eaa31ce0e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue