Skip to content

bugfix: check for existing col_data before col switch#251

Open
HimanshuChoudhary-Xilinx wants to merge 1 commit intoXilinx:main-gefrom
HimanshuChoudhary-Xilinx:bugfix10
Open

bugfix: check for existing col_data before col switch#251
HimanshuChoudhary-Xilinx wants to merge 1 commit intoXilinx:main-gefrom
HimanshuChoudhary-Xilinx:bugfix10

Conversation

@HimanshuChoudhary-Xilinx
Copy link
Collaborator

Problem solved by the commit

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

How problem was solved, alternative solutions (if any) and why they were rejected

Risks (if any) associated the changes in the commit

What has been tested and how, request additional testing if necessary

Documentation impact (if any)

Signed-off-by: Himanshu Choudhary <Himanshu.Choudhary@amd.com>
Copilot AI review requested due to automatic review settings March 24, 2026 06:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes column-switch behavior in the ASM preprocessor parser so that switching back to a previously-used column does not wipe out already-parsed col_data (e.g., when the same column is re-selected after a .include).

Changes:

  • Update asm_parser::set_current_col(int col) to only initialize m_col[col] when the column entry does not already exist.
  • Add an explanatory comment documenting why existing col_data must be preserved across column switches.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

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