We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4764c commit 7ea64aeCopy full SHA for 7ea64ae
clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
@@ -508,13 +508,7 @@ void NullabilityChecker::checkEvent(ImplicitNullDerefEvent Event) const {
508
/// return expressions of ObjC types when the return type of the function or
509
/// method is non-null but the express is not.
510
static const Expr *lookThroughImplicitCasts(const Expr *E) {
511
- assert(E);
512
-
513
- while (auto *ICE = dyn_cast<ImplicitCastExpr>(E)) {
514
- E = ICE->getSubExpr();
515
- }
516
517
- return E;
+ return E->IgnoreImpCasts();
518
}
519
520
/// This method check when nullable pointer or null value is returned from a
0 commit comments