-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. #137556
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
[alpha.webkit.RetainPtrCtorAdoptChecker] Check nullity before calling IgnoreParenCasts. #137556
Conversation
… IgnoreParenCasts.
@llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) ChangesFull diff: https://github.com/llvm/llvm-project/pull/137556.diff 1 Files Affected:
diff --git a/clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp
index bba1d48e6db11..34c98daa78049 100644
--- a/clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp
@@ -444,9 +444,10 @@ class RetainPtrCtorAdoptChecker
return false;
if (!ObjCMsgExpr->isInstanceMessage())
return false;
- auto *Receiver = ObjCMsgExpr->getInstanceReceiver()->IgnoreParenCasts();
+ auto *Receiver = ObjCMsgExpr->getInstanceReceiver();
if (!Receiver)
return false;
+ Receiver = Receiver->IgnoreParenCasts();
if (auto *Inner = dyn_cast<ObjCMessageExpr>(Receiver)) {
if (InnerExpr)
*InnerExpr = Inner;
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16754 Here is the relevant piece of the build log for the reference
|
… IgnoreParenCasts. (llvm#137556)
… IgnoreParenCasts. (llvm#137556)
… IgnoreParenCasts. (llvm#137556)
… IgnoreParenCasts. (llvm#137556)
… IgnoreParenCasts. (llvm#137556)
… IgnoreParenCasts. (llvm#137556)
No description provided.