From a69385c5cabdc171c73722d7935503725445ac81 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 21 Feb 2026 20:46:41 +0300 Subject: [PATCH] ir-gen: add `HasAttrNode` conversion Signed-off-by: NotAShelf Change-Id: I8e5bf04734112dc6e0885a42b4d546016a6a6964 --- src/irc/ir_gen.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/irc/ir_gen.cpp b/src/irc/ir_gen.cpp index d149c1a..5b56cec 100644 --- a/src/irc/ir_gen.cpp +++ b/src/irc/ir_gen.cpp @@ -137,6 +137,11 @@ struct IRGenerator::Impl { } return std::make_shared(select); } + if (auto* n = node.get_if()) { + auto expr = convert(n->expr); + auto attr = convert(n->attr); + return std::make_shared(HasAttrNode(expr, attr, n->line)); + } if (auto* n = node.get_if()) { auto attrs = convert(n->attrs); auto body = convert(n->body);