Skip to content

Remove stale TODO comment in LlvmIrModule.MapStructure - #12178

Merged
jonathanpeppers merged 2 commits into
mainfrom
copilot/fix-finder-remove-stale-todo
Jul 20, 2026
Merged

jonathanpeppers merged 2 commits into
mainfrom
copilot/fix-finder-remove-stale-todo

Conversation

Copilot AI commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

The // TODO: check if already there comment in LlvmIrModule.MapStructure was already implemented by the structures.TryGetValue call immediately below it, making the comment misleading.

Change

Removed the stale comment; no behavioral change:

// Before
// TODO: check if already there
if (structures.TryGetValue (t, out StructureInfo sinfo)) {
    return (StructureInfo)sinfo;
}

// After
if (structures.TryGetValue (t, out StructureInfo sinfo)) {
    return (StructureInfo)sinfo;
}

Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove stale TODO comment in LlvmIrModule Remove stale TODO comment in LlvmIrModule.MapStructure Jul 20, 2026
Copilot AI requested a review from jonathanpeppers July 20, 2026 03:22
@jonathanpeppers
jonathanpeppers marked this pull request as ready for review July 20, 2026 13:00
Copilot AI review requested due to automatic review settings July 20, 2026 13:00
@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Jul 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes a misleading, stale TODO comment in LlvmIrModule.MapStructure<T>() within the LLVM IR generator utilities, clarifying that the β€œalready there” check is already implemented via structures.TryGetValue.

Changes:

  • Removed the outdated // TODO: check if already there comment above the existing dictionary lookup.

@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) July 20, 2026 18:17
@jonathanpeppers
jonathanpeppers merged commit e7de52b into main Jul 20, 2026
45 checks passed
@jonathanpeppers
jonathanpeppers deleted the copilot/fix-finder-remove-stale-todo branch July 20, 2026 20:01
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix-finder] Remove stale TODO comment in LlvmIrModule.MapStructure

4 participants