Skip to content

Commit a5c7271

Browse files
authored
Fix compilation errors appearing due to missing <cstdint> include (#81233)
This patch resolves the issue by adding missing `<cstdint>` includes. For SmallVector.h, such a change was already introduced in LLVM repository: llvm/llvm-project@7e44305 <!-- If this pull request is targeting a release branch, please fill out the following form: https://github.com/swiftlang/.github/blob/main/PULL_REQUEST_TEMPLATE/release.md?plain=1 Otherwise, replace this comment with a description of your changes and rationale. Provide links to external references/discussions if appropriate. If this pull request resolves any GitHub issues, link them like so: Resolves <link to issue>, resolves <link to another issue>. For more information about linking a pull request to an issue, see: https://docs.github.com/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue --> <!-- Before merging this pull request, you must run the Swift continuous integration tests. For information about triggering CI builds via @swift-ci, see: https://github.com/apple/swift/blob/main/docs/ContinuousIntegration.md#swift-ci Thank you for your contribution to Swift! -->
1 parent 59d7d31 commit a5c7271

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/swift/AST/FunctionRefInfo.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#include "swift/Basic/Debug.h"
2222
#include "swift/Basic/LLVM.h"
2323

24+
#include <cstdint>
25+
2426
namespace swift {
2527

2628
class DeclNameLoc;

stdlib/include/llvm/ADT/SmallVector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <algorithm>
2222
#include <cassert>
2323
#include <cstddef>
24+
#include <cstdint>
2425
#include <cstdlib>
2526
#include <cstring>
2627
#include <functional>

0 commit comments

Comments
 (0)