Skip to content

Conversation

@drodriguez
Copy link
Contributor

Feedback in #85445 after it merged pointed out that the changes around createClangInvocation are not necessary because CompilerInvocation do not hold a reference to clang::DiagnosticOptions, only the clang::driver::Driver does.

These changes undo the modifications done there and return the code to the previous state (but keeps the changes around createClangDriver which was causing the use-after-free).

…swiftlang#85445)

Feedback in swiftlang#85445 after it merged pointed out that the changes around
`createClangInvocation` are not necessary because `CompilerInvocation`
do not hold a reference to `clang::DiagnosticOptions`, only the
`clang::driver::Driver` does.

These changes undo the modifications done there and return the code to
the previous state (but keeps the changes around `createClangDriver`
which was causing the use-after-free).
@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test macOS platform

@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test windows platform

@drodriguez drodriguez merged commit 21ccb27 into swiftlang:main Nov 13, 2025
5 checks passed
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