Skip to content

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

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
merged 2 commits into from
May 21, 2025

Conversation

AnthonyLatsis
Copy link

@AnthonyLatsis AnthonyLatsis commented May 21, 2025

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

bnbarham added 2 commits May 21, 2025 06:48
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 AnthonyLatsis requested a review from bnbarham May 21, 2025 06:05
@bnbarham bnbarham merged commit 43cb119 into swiftlang:stable/20250402 May 21, 2025
@AnthonyLatsis AnthonyLatsis deleted the stable/20250402 branch May 21, 2025 17:08
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