Skip to content

[rebranch] Include <climits> in Ownership.h #38277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Jul 6, 2021

This is to address the following failure in Linux

/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test@2/branch-rebranch/swift/include/swift/AST/ReferenceStorage.def:189:1:
error: use of undeclared identifier 'INT_MIN'

This is to address the following failure in Linux

```
/home/buildnode/jenkins/workspace/swift-PR-Linux-smoke-test@2/branch-rebranch/swift/include/swift/AST/ReferenceStorage.def:189:1:
error: use of undeclared identifier 'INT_MIN'
```
@edymtt edymtt requested a review from etcwilde July 6, 2021 17:10
@edymtt
Copy link
Contributor Author

edymtt commented Jul 6, 2021

@swift-ci please smoke test

@etcwilde
Copy link
Member

etcwilde commented Jul 7, 2021

error: no member named 'PrintHelp' in 'llvm::opt::OptTable'; did you mean 'printHelp'? -- #38182

Copy link
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

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

Huh, I'm trying to figure out how this compiled in the first place now.

This will work to get things moving for now. I would prefer staying consistent with C vs C++ header includes and using limits.h instead of climits.

Really though, replacing the INT_MIN with something like std::numeric_limits<int>::min() would be more C++-y though more verbose.

@edymtt edymtt merged commit e29e1f4 into swiftlang:rebranch Jul 8, 2021
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