[cfe-commits] r136413 - /cfe/trunk/lib/StaticAnalyzer/Core/ObjCMessage.cpp

Ted Kremenek kremenek at apple.com
Thu Jul 28 16:07:38 PDT 2011


Author: kremenek
Date: Thu Jul 28 18:07:38 2011
New Revision: 136413

URL: http://llvm.org/viewvc/llvm-project?rev=136413&view=rev
Log:
[analyzer] Fix bug in ObjCMessage where casts were being incorrectly ignored.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/ObjCMessage.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/ObjCMessage.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ObjCMessage.cpp?rev=136413&r1=136412&r2=136413&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ObjCMessage.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ObjCMessage.cpp Thu Jul 28 18:07:38 2011
@@ -144,7 +144,7 @@
 SVal CallOrObjCMessage::getFunctionCallee() const {
   assert(isFunctionCall());
   assert(!isCXXCall());
-  const Expr *callee = CallE->getCallee()->IgnoreParenCasts();
+  const Expr *callee = CallE->getCallee()->IgnoreParens();
   return State->getSVal(callee);
 }
 





More information about the cfe-commits mailing list