Skip to content

[stable/20250601] Cherry-pick https://github.com/swiftlang/llvm-project/pull/9212 #10901

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

AnthonyLatsis
Copy link

Cherry-picks the reverts from #7567 again, as this issue still isn't fixed.

bnbarham added 2 commits June 26, 2025 04:21
This reverts commit 76cfe6c.

Only running `ActOnEndOfTranslationUnit` when
`enableIncrementalProcessing` was false was the only NFC part of
splitting `-fincremental-extensions` and `enableIncrementalProcessing`
again (68090ee). LLDB started failing
after that change with:
```
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/cstdlib:127:9: error: declaration of 'calloc' must be imported from module 'Darwin.malloc._malloc' before it is required
```

Reverting that part of the change fixed LLDB and didn't cause any other
test failures, so happy days.

Unfortunately most of what `Sema::ActOnEndOfTranslationUnit` does is
additional diagnostics, which don't make a lot of sense from the Clang
Importer in Swift. So this ends up being a significant regression if eg.
`-warnings-as-errors` is enabled.

Resolves rdar://116194950.

(cherry picked from commit eed23a1)
This reverts commit f247725, which was
a re-application of the original change added back in after "fixing" the
underlying issue. See the next commit (also a revert) for more details.

(cherry picked from commit 2e97520)
@AnthonyLatsis
Copy link
Author

@swift-ci please test llvm

@AnthonyLatsis AnthonyLatsis merged commit d6ec2a5 into swiftlang:stable/20250601 Jun 26, 2025
2 checks passed
@AnthonyLatsis AnthonyLatsis deleted the stable/20250601 branch June 26, 2025 05:38
@AnthonyLatsis
Copy link
Author

@swift-ci please test macOS

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