Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: save the data bus to the current function before generating othe…
…rs (#4047) # Description ## Problem\* Resolves #4046 ## Summary\* This PR changes saves the data bus configuration before processing the other queued functions during SSA gen phase. ## Additional Context With the current implementation the databus will be incorrectly saved to the last generated function instead of the main function, causing a panic in a later optimization phase. ## Documentation\* Check one: - [X] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[Exceptional Case]** Documentation to be submitted in a separate PR. # PR Checklist\* - [X] I have tested the changes locally. - [X] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information