Skip to content

[cxx-interop] Emit lvalue-to-rvalue conversion in synthesized bit-field getter#90560

Merged
j-hui merged 1 commit into
swiftlang:mainfrom
j-hui:cxx-bitfield-access
Jul 13, 2026
Merged

[cxx-interop] Emit lvalue-to-rvalue conversion in synthesized bit-field getter#90560
j-hui merged 1 commit into
swiftlang:mainfrom
j-hui:cxx-bitfield-access

Conversation

@j-hui

@j-hui j-hui commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

The getter body previously read the member as a prvalue, which tripped Clang's C++11 constant evaluator assertion and crashed swift-frontend when IR-generating bit-field accessors under -cxx-interoperability-mode.

rdar://158308810

@j-hui

j-hui commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@j-hui j-hui force-pushed the cxx-bitfield-access branch from 2995698 to f8bde2c Compare July 11, 2026 01:22
@j-hui

j-hui commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

…ld getter

The getter body previously read the member as a prvalue, which tripped
Clang's C++11 constant evaluator assertion and crashed swift-frontend
when IR-generating bit-field accessors under -cxx-interoperability-mode.

rdar://158308810
@j-hui j-hui force-pushed the cxx-bitfield-access branch from f8bde2c to d521a83 Compare July 11, 2026 01:24
@j-hui

j-hui commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test

@j-hui j-hui enabled auto-merge July 11, 2026 01:28
@j-hui

j-hui commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author
********************
Flaky Tests (1):
  Swift(windows-x86_64) :: stdlib/CharacterProperties.swift

@j-hui

j-hui commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test windows platform

1 similar comment
@j-hui

j-hui commented Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

@swift-ci please smoke test windows platform

@j-hui j-hui merged commit a47e7e0 into swiftlang:main Jul 13, 2026
3 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.

4 participants