From 38bc347ff50b80558a8c1e7e2156057c0033cf7f Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Tue, 29 Jan 2019 19:29:19 +0000 Subject: Extend AnyCall to handle callable declarations without the call expressions That weakens inner invariants, but allows the class to be more generic, allowing usage in situations where the call expression is not known (or should not matter). Differential Revision: https://reviews.llvm.org/D57344 llvm-svn: 352531 --- .../StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp') diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp index c3d191429e4..1ab4106b857 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp @@ -347,7 +347,7 @@ const static RetainSummary *getSummary(RetainSummaryManager &Summaries, const Expr *CE = Call.getOriginExpr(); AnyCall C = CE ? *AnyCall::forExpr(CE) - : AnyCall::forDestructorCall(cast(Call.getDecl())); + : AnyCall(cast(Call.getDecl())); return Summaries.getSummary(C, Call.hasNonZeroCallbackArg(), isReceiverUnconsumedSelf(Call), ReceiverType); } -- cgit v1.2.3