-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[clang][dataflow] Fix a missing break from a switch case -Wimplicit-fallthrough #120739
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
Conversation
✅ With the latest revision this PR passed the C/C++ code formatter. |
@llvm/pr-subscribers-clang-analysis Author: Jan Voung (jvoung) ChangesMissed when changing code in #120102 Full diff: https://github.com/llvm/llvm-project/pull/120739.diff 1 Files Affected:
diff --git a/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp b/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp
index 546f128531df3c..a0c81aa933da8e 100644
--- a/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp
+++ b/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp
@@ -71,7 +71,7 @@ bool hasSmartPointerClassShape(const CXXRecordDecl &RD, bool &HasGet,
->getCanonicalTypeUnqualified();
}
}
- }
+ } break;
default:
break;
}
|
@llvm/pr-subscribers-clang Author: Jan Voung (jvoung) ChangesMissed when changing code in #120102 Full diff: https://github.com/llvm/llvm-project/pull/120739.diff 1 Files Affected:
diff --git a/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp b/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp
index 546f128531df3c..a0c81aa933da8e 100644
--- a/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp
+++ b/clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp
@@ -71,7 +71,7 @@ bool hasSmartPointerClassShape(const CXXRecordDecl &RD, bool &HasGet,
->getCanonicalTypeUnqualified();
}
}
- }
+ } break;
default:
break;
}
|
Thanks for the fix! |
Thanks for helping merge! And sorry again about the breakage! |
Missed when changing code in #120102