Skip to content

Conversation

@Smit-create
Copy link
Collaborator

@Smit-create Smit-create mentioned this pull request Mar 15, 2023
6 tasks
Comment on lines 1230 to 1233
if (compiler_options.fast && x.m_value != nullptr) {
visit_expr(*x.m_value);
return;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exactly the same block repeated in every node. So what about creating macro to generate this and placing the macro everywhere.

In fact I would like to call it automatically so that one doesn't have to add this to every node. I don't know if C++ supports a way to always insert a code block in subclass method (other than macro one which one has to do by hand in every node). Anyways, let's leave this automation for future, right now just create a macro and use it everywhere.

@Smit-create Smit-create marked this pull request as ready for review March 16, 2023 13:24
@Smit-create Smit-create requested a review from czgdp1807 March 16, 2023 13:44
@Smit-create Smit-create merged commit c792719 into lcompilers:main Mar 16, 2023
@Smit-create Smit-create deleted the i-1575-1 branch March 16, 2023 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants