Skip to content

Conversation

@CyberShadow
Copy link
Contributor

LLM disclosure: this entire PR is AI-generated. It might be OK, or it might be slop. The fix looks sensible on the surface, and it passes the test suite, however, so does most slop in general.

This PR doesn't fix any problem I'm seeing; it's just a problem Claude noticed while investigating #4294.


GCC inline assembly uses %= to generate a unique ID for each asm statement, useful for creating unique labels. The existing code translated this to $= which is not valid LLVM inline asm syntax.

This changes the translation to use ${:uid} which is the correct LLVM syntax for generating unique IDs.

🤖 Generated with Claude Code

GCC inline assembly uses %= to generate a unique ID for each asm
statement, useful for creating unique labels. The existing code
translated this to $= which is not valid LLVM inline asm syntax.

This changes the translation to use ${:uid} which is the correct
LLVM syntax for generating unique IDs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@CyberShadow CyberShadow force-pushed the fix-gcc-asm-unique-id branch from 0f4b61a to 26ba6be Compare December 20, 2025 15:04
Copy link
Member

@kinke kinke left a comment

Choose a reason for hiding this comment

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

Thx Vladimir!

@kinke kinke merged commit 5fa7914 into ldc-developers:master Dec 22, 2025
22 of 23 checks passed
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.

2 participants