]> granicus.if.org Git - clang/commitdiff
Remove unused member (& consequently unused parameter) in SA's Call code.
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 2 Jul 2012 20:44:57 +0000 (20:44 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 2 Jul 2012 20:44:57 +0000 (20:44 +0000)
This member became unused in r159559.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159581 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/Calls.h
lib/StaticAnalyzer/Core/ExprEngine.cpp

index c555ee995f7423e9e28af27e546969bbf69bf246..86001baffeb25946f7bfc4111460eba6ab82e44e 100644 (file)
@@ -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 {
index 63aa28fa0aab34d6875095b7aff8bfb7f1db6af9..ae38a12160c61d32910a43f6632197e31a30e26b 100644 (file)
@@ -881,9 +881,8 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
         if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(syntactic))
           syntactic = BO->getLHS();
 
-        if (const ObjCPropertyRefExpr *PR =
-              dyn_cast<ObjCPropertyRefExpr>(syntactic)) {
-          VisitObjCMessage(ObjCPropertyAccess(PR, PO->getSourceRange(), ME,
+        if (isa<ObjCPropertyRefExpr>(syntactic)) {
+          VisitObjCMessage(ObjCPropertyAccess(PO->getSourceRange(), ME,
                                               Pred->getState(), LCtx),
                            Pred, Dst);
           evaluated = true;