From 977a35644e94441258cadb7f04f3f73946d665f2 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 2 Jul 2012 20:44:57 +0000 Subject: [PATCH] Remove unused member (& consequently unused parameter) in SA's Call code. This member became unused in r159559. llvm-svn: 159581 --- .../clang/StaticAnalyzer/Core/PathSensitive/Calls.h | 11 ++++------- clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 5 ++--- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h index c555ee995f74..86001baffeb2 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h +++ b/clang/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/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index 63aa28fa0aab..ae38a12160c6 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/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;