-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Regression(ed83797f3cbfc8): Behavior change in __weak in debug builds with -fno-objc-arc-exceptions #69658
Comments
@llvm/issue-subscribers-clang-codegen Author: Nico Weber (nico)
Phab is down, so I can't look, so I can't look at the discussion at https://reviews.llvm.org/D105671. Maybe this is intentional!
We noticed that ed83797 changed the behavior of this code:
After the change, in non-optimized builds, this now exits with 2:
It exits with 0:
Is this an intentional change? It seems surprising that it only changes in some build configs. The code looks a little bit weird, but possibly ok to me. @jroelofs |
I did not expect that change to affect program behavior. I'll have a look next week. |
Should we revert for now to keep trunk green? |
Good idea. cb62f67 |
Looks like this is the relevant part of the diff responsible for the behavior change:
|
This reverts commit cb62f67. Fixes: llvm/llvm-project#69658
This reverts commit cb62f67. Fixes: llvm/llvm-project#69658
Phab is down, so I can't look at the discussion at https://reviews.llvm.org/D105671. Maybe this is intentional!
We noticed that ed83797 changed the behavior of this code:
After the change, in non-optimized builds, this now exits with 2:
It exits with 0:
Is this an intentional change? It seems surprising that it only changes in some build configs.
The code looks a little bit weird, but possibly ok to me.
@jroelofs
The text was updated successfully, but these errors were encountered: