Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change in begin_borrow instruction in latest SIL version #90

Open
Abdulraheem-Arar opened this issue Dec 4, 2024 · 0 comments
Open
Assignees

Comments

@Abdulraheem-Arar
Copy link

In the newer SIL version these 2 attributes have been added which are causing the SIL parser to fail when they are not handled.

The optional pointer_escape attribute specifies that a pointer to the operand escapes within the borrow scope introduced by this begin_borrow.

The optional var_decl attribute specifies that the operand corresponds to a local variable in the Swift source.

These two attributes should be handled also by the SIL parser so the case class for the begin_borrow instruction should be altered.

these attributes are not currently in the SIL parser as this is the case class for the begin_borrow at the moment.
case class beginBorrow(lexical: Boolean, operand: SILOperand) extends SILOperator

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

No branches or pull requests

2 participants