Skip to content

Conversation

@cyndyishida
Copy link

…n (llvm#166640)

Before this patch, compilations using modules &
-mspeculative-load-hardening failed because it was not consistent whether this option impacts module compatibility.

This repairs it by always treating it as benign. This was determined by checking if the option enables any kind of preprocessor checks and comparing how the compiler handles a similar option that impacts codegen (-fvisibility=hidden) but is more widely used.

resolves: rdar://163985667
(cherry picked from commit e700f15)

llvm#166640)

Before this patch, compilations using modules &
`-mspeculative-load-hardening` failed because it was not consistent
whether this option impacts module compatibility.

This repairs it by always treating it as benign. This was determined by
checking if the option enables any kind of preprocessor checks and
comparing how the compiler handles a similar option that impacts codegen
(-fvisibility=hidden) but is more widely used.

resolves: rdar://163985667
(cherry picked from commit e700f15)
@cyndyishida
Copy link
Author

@swift-ci please test

@cyndyishida cyndyishida merged commit d61d89d into swiftlang:stable/21.x Nov 7, 2025
3 checks passed
@cyndyishida cyndyishida deleted the eng/PR-SLH branch November 7, 2025 00:10
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.

1 participant