]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix bug in ObjCMessage where casts were being incorrectly ignored.
authorTed Kremenek <kremenek@apple.com>
Thu, 28 Jul 2011 23:07:38 +0000 (23:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 28 Jul 2011 23:07:38 +0000 (23:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136413 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ObjCMessage.cpp

index c000600474980c70a433cc87a77dd870cd381fe1..40ed83beb87e863531359d5060ea2b8900aa16c7 100644 (file)
@@ -144,7 +144,7 @@ SVal CallOrObjCMessage::getArgSValAsScalarOrLoc(unsigned i) const {
 SVal CallOrObjCMessage::getFunctionCallee() const {
   assert(isFunctionCall());
   assert(!isCXXCall());
-  const Expr *callee = CallE->getCallee()->IgnoreParenCasts();
+  const Expr *callee = CallE->getCallee()->IgnoreParens();
   return State->getSVal(callee);
 }