summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-30 18:24:54 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-30 18:24:54 +0000
commit4be6a758840e24cabd0766aac573857127f23a0b (patch)
tree008299eed4e60edbb2621be61c4bc5664cce8a6a /clang/lib/Checker
parent5cab26d058d3181ebdf1dbb9411c33229d1842cf (diff)
downloadbcm5719-llvm-4be6a758840e24cabd0766aac573857127f23a0b.tar.gz
bcm5719-llvm-4be6a758840e24cabd0766aac573857127f23a0b.zip
Change the analyzer to recognize (but ignore) assignments to isa. Fixes PR 6302.
llvm-svn: 99904
Diffstat (limited to 'clang/lib/Checker')
-rw-r--r--clang/lib/Checker/GRExprEngine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Checker/GRExprEngine.cpp b/clang/lib/Checker/GRExprEngine.cpp
index ae4c5fe3c12..1afe0917f1c 100644
--- a/clang/lib/Checker/GRExprEngine.cpp
+++ b/clang/lib/Checker/GRExprEngine.cpp
@@ -897,6 +897,11 @@ void GRExprEngine::VisitLValue(Expr* Ex, ExplodedNode* Pred,
return;
}
+ case Stmt::ObjCIsaExprClass:
+ // FIXME: Do something more intelligent with 'x->isa = ...'.
+ // For now, just ignore the assignment.
+ return;
+
case Stmt::ObjCPropertyRefExprClass:
case Stmt::ObjCImplicitSetterGetterRefExprClass:
// FIXME: Property assignments are lvalues, but not really "locations".
OpenPOWER on IntegriCloud