]> granicus.if.org Git - clang/commitdiff
Add bandaid transfer function support for assignments involving ObjCKVCRefExpr.
authorTed Kremenek <kremenek@apple.com>
Sat, 6 Dec 2008 02:39:30 +0000 (02:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 6 Dec 2008 02:39:30 +0000 (02:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60622 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index b3b311a02c4d8b895095e00d5eb456966d46fb92..8a32bfe95241047dc0a2507479cd60df7b2576d4 100644 (file)
@@ -2364,6 +2364,13 @@ void GRExprEngine::VisitBinaryOperator(BinaryOperator* B,
   Expr* LHS = B->getLHS()->IgnoreParens();
   Expr* RHS = B->getRHS()->IgnoreParens();
   
+  // FIXME: Add proper support for ObjCKVCRefExpr.
+  if (isa<ObjCKVCRefExpr>(LHS)) {
+    Visit(RHS, Pred, Dst);   
+    return;
+  }
+  
+  
   if (B->isAssignmentOp())
     VisitLValue(LHS, Pred, Tmp1);
   else