From: David Blaikie Date: Mon, 2 Jul 2012 20:44:57 +0000 (+0000) Subject: Remove unused member (& consequently unused parameter) in SA's Call code. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e674e1da34a131faa7d43dc3fcbd6e49120edbe;p=clang Remove unused member (& consequently unused parameter) in SA's Call code. This member became unused in r159559. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159581 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h b/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h index c555ee995f..86001baffe 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h @@ -405,16 +405,13 @@ public: /// /// Example: obj.prop += 1; class ObjCPropertyAccess : public ObjCMethodCall { - const ObjCPropertyRefExpr *PropE; SourceRange EntireRange; public: - ObjCPropertyAccess(const ObjCPropertyRefExpr *pe, SourceRange range, - const ObjCMessageExpr *Msg, const ProgramStateRef St, - const LocationContext *LCtx) - : ObjCMethodCall(Msg, St, LCtx, CE_ObjCPropertyAccess), PropE(pe), - EntireRange(range) - {} + ObjCPropertyAccess(SourceRange range, const ObjCMessageExpr *Msg, + const ProgramStateRef St, const LocationContext *LCtx) + : ObjCMethodCall(Msg, St, LCtx, CE_ObjCPropertyAccess), EntireRange(range) + {} /// \brief Returns true if this property access is calling the setter method. bool isSetter() const { diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp index 63aa28fa0a..ae38a12160 100644 --- a/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -881,9 +881,8 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred, if (const BinaryOperator *BO = dyn_cast(syntactic)) syntactic = BO->getLHS(); - if (const ObjCPropertyRefExpr *PR = - dyn_cast(syntactic)) { - VisitObjCMessage(ObjCPropertyAccess(PR, PO->getSourceRange(), ME, + if (isa(syntactic)) { + VisitObjCMessage(ObjCPropertyAccess(PO->getSourceRange(), ME, Pred->getState(), LCtx), Pred, Dst); evaluated = true;