Skip to content

Conversation

naveen-seth
Copy link
Contributor

FileOffset.h uses uint64_t but only includes <cstdlib>, which is not specified to provide the uint64_t type.
This happens to work without LLVM_ENABLE_MODULES enabled due to transitive includes from <cstdlib>.
With LLVM_ENABLE_MODULES enabled, declarations from transitive includes are not visible by default, and the build fails.

This fixes LLVM_ENABLE_MODULES builds by including the proper header, <cstdint>, instead.

FileOffset.h uses uint64_t but only includes <cstdlib>, which is not
specified to provide the uint64_t type.
This happens to work without LLVM_ENABLE_MODULES enabled due to
transitive includes from <cstdlib>.
With LLVM_ENABLE_MODULES enabled, declarations from transitive
includes are not visible by default, and the build fails.

This fixes LLVM_ENABLE_MODULES builds by including the proper header,
<cstdint>, instead.
@naveen-seth naveen-seth changed the title [CAS][Modules] Fix LLVM_ENABLE_MODULES build / faulty include (NFC) [Modules] Fix LLVM_ENABLE_MODULES build (NFC) Oct 21, 2025
@naveen-seth naveen-seth merged commit 83927a6 into llvm:main Oct 21, 2025
11 checks passed
@naveen-seth naveen-seth deleted the fix-llvm-enable-modules-build branch October 21, 2025 13:44
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