Skip to content

Commit

Permalink
hl: Fix dangling reference to operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
xlauko committed Oct 17, 2024
1 parent c34a9eb commit 4a85174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vast/Dialect/HighLevel/Transforms/LowerEnums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace vast::hl {
: mctx(mctx)
{
conv::tc::function_type_converter< EnumTypeConverter >::init();
addConversion([&](hl::EnumType ty) {
addConversion([op](hl::EnumType ty) {
auto ts = core::symbol_table::lookup< core::type_symbol >(op, ty.getName());
VAST_CHECK(ts, "Enum type {0} not present in the symbol table.", ty.getName());
auto ec = mlir::dyn_cast_if_present< hl::EnumDeclOp >(ts);
Expand Down

0 comments on commit 4a85174

Please sign in to comment.