Skip to content

Commit

Permalink
hl:lowertypedefs: Replace recursive replacer with the simple one.
Browse files Browse the repository at this point in the history
The recursive replacer walks only on the ops and ignores other stuff e.g. block arguments breaking the rest of the pass.
  • Loading branch information
Jezurko committed Nov 9, 2023
1 parent 751548b commit cc0567c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vast/Dialect/HighLevel/Transforms/LowerTypeDefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ namespace vast::hl {
mlir::AttrTypeReplacer replacer;
replacer.addReplacement(conv::tc::convert_type_attr(tc));
replacer.addReplacement(conv::tc::convert_data_layout_attrs(tc));
replacer.recursivelyReplaceElementsIn(

replacer.replaceElementsIn(
op, true /* replace attrs */, false /* replace locs */, true /* replace types */
);
};
Expand Down

0 comments on commit cc0567c

Please sign in to comment.