Skip to content

[FIRRTL] Add missing #include#9636

Merged
jmolloy merged 1 commit intollvm:mainfrom
jmolloy:layerset-includes
Feb 9, 2026
Merged

[FIRRTL] Add missing #include#9636
jmolloy merged 1 commit intollvm:mainfrom
jmolloy:layerset-includes

Conversation

@jmolloy
Copy link
Contributor

@jmolloy jmolloy commented Feb 9, 2026

Fails to compile in strict headers mode because SmallSet/SymbolRefAttr
are not defined.

No functional change.

Fails to compile in strict headers mode because SmallSet/SymbolRefAttr
are not defined.

No functional change.
@seldridge
Copy link
Member

Looks fine and I'm generally in favor of including what you use.

Could you clarify what settings you used to compile this to flag this as an error?

@jmolloy
Copy link
Contributor Author

jmolloy commented Feb 9, 2026

In Google the build system is set up to use -fheader-modules or some variant of modules, so the header is compiled in isolation and doesn't get to see the prior includes in any .cpp that includes it.

@jmolloy jmolloy merged commit c38b64c into llvm:main Feb 9, 2026
7 checks passed
@seldridge
Copy link
Member

Nice. Thanks for the explanation and the patch.

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