-
Notifications
You must be signed in to change notification settings - Fork 13.6k
lldb/source/Utility/Scalar.cpp:756: Condition can never be true #85985
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
Comments
@llvm/issue-subscribers-lldb Author: None (dcb314)
lldb/source/Utility/Scalar.cpp:756:23: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition]
Source code is if (sign_bit_pos < max_bit_pos) {
|
git blame says: 99b5474 (Jonas Hahnfeld 2023-08-01 18:31:51 +0200 756) if (max_bit_pos == sign_bit_pos) |
This is 100% bogus: If you click on the commit, you will see that it only added a Clang test. Do you maybe only have a shallow clone without the full history? |
Agreed.
Agreed.
Maybe I do. I have had trouble with shallow clones and git blame finding Do you perhaps know who the real author of the code was ? |
Just use the GitHub interface: https://github.com/llvm/llvm-project/blame/e68d505008d878c6303032631fcfd5918b62f3d6/lldb/source/Utility/Scalar.cpp#L756 |
lldb/source/Utility/Scalar.cpp:756:23: warning: Opposite inner 'if' condition leads to a dead code block. [oppositeInnerCondition]
Source code is
if (sign_bit_pos < max_bit_pos) {
switch (m_type) {
case Scalar::e_void:
case Scalar::e_float:
return false;
The text was updated successfully, but these errors were encountered: