Skip to content

[Bridging PCH] Only emit deps for CompileJobActions rdar://31016087 #8097

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 1 commit into from
Mar 15, 2017

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Mar 15, 2017

Undo a bug (accidentally introduced in #7944 / fae468f) wherein we generate .d and .swiftdeps files for bridging PCH steps. The presence of these breaks an invariant that only CompileJobActions are supposed to have such depfiles, which in turn causes an attempted cast to go wrong. This bad cast traps in an assertions-build. In non-assertions builds it's a UMR that may cause a miscompile.

rdar://31016087

@graydon graydon requested a review from jrose-apple March 15, 2017 00:21
@graydon
Copy link
Contributor Author

graydon commented Mar 15, 2017

@swift-ci please test

@graydon graydon force-pushed the rdar-31016087-pch-driver-crash branch from 776390a to d711c04 Compare March 15, 2017 00:42
@graydon graydon changed the title [Bridging PCH] Add missing cast guard in Driver, rdar://31016087 [Bridging PCH] Only emit deps for CompileJobActions rdar://31016087 Mar 15, 2017
@graydon
Copy link
Contributor Author

graydon commented Mar 15, 2017

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 776390a63b920c3817fce292ac4485bd3aa1eb26
Test requested by - @graydon

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 776390a63b920c3817fce292ac4485bd3aa1eb26
Test requested by - @graydon

@graydon graydon merged commit 98e9f46 into swiftlang:master Mar 15, 2017
@graydon graydon deleted the rdar-31016087-pch-driver-crash branch September 13, 2017 16:42
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.

3 participants