Skip to content

[lldb] Emit a warning when UB is detected in an expression IR #10350

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 26, 2025

Conversation

adrian-prantl
Copy link

In rare cases missing type information results in IRGen lowering values into SILUndef. This may be for a variable that isn't even used in the expression, so we just warn about it. This is reported as an out-of-band warning, because LLDB suppresses warnings on successful expressions.

rdar://147879706

In rare cases missing type information results in IRGen lowering
values into SILUndef. This may be for a variable that isn't even
used in the expression, so we just warn about it. This is reported
as an out-of-band warning, because LLDB suppresses warnings on
successful expressions.

rdar://147879706
@adrian-prantl adrian-prantl requested a review from a team as a code owner March 25, 2025 23:40
@adrian-prantl
Copy link
Author

I manually tested this on the original reproducer, but I don't know how to reliably test this from the test suite.

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit d2ed2d2 into swiftlang:stable/20240723 Mar 26, 2025
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.

1 participant