Skip to content

Commit 27db3ad

Browse files
committed
Fix debug tests
1 parent 1a7cbf1 commit 27db3ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,10 @@ class RetainPtrCtorAdoptChecker
456456
if (InnerExpr)
457457
*InnerExpr = CE;
458458
if (auto *Callee = CE->getDirectCallee()) {
459-
auto CalleeName = Callee->getName();
460-
return CalleeName.starts_with("alloc");
459+
if (Callee->getDeclName().isIdentifier()) {
460+
auto CalleeName = Callee->getName();
461+
return CalleeName.starts_with("alloc");
462+
}
461463
}
462464
}
463465
return false;

0 commit comments

Comments
 (0)