]> granicus.if.org Git - clang/commitdiff
objc methods can't be an operand to callexpr.
authorChris Lattner <sabre@nondot.org>
Fri, 17 Jul 2009 15:46:27 +0000 (15:46 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 17 Jul 2009 15:46:27 +0000 (15:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76179 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Expr.cpp

index 320a4f1f72e43d1dd6f423bcff4fd89eb446fac7..54739780bec08a3eac243d27e7a097077e998fd8 100644 (file)
@@ -226,10 +226,8 @@ void CallExpr::Destroy(ASTContext& C) {
 
 FunctionDecl *CallExpr::getDirectCallee() {
   Expr *CEE = getCallee()->IgnoreParenCasts();
-  if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE)) {
-    // FIXME: We can follow objective-c methods and C++ member functions...
+  if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(CEE))
     return dyn_cast<FunctionDecl>(DRE->getDecl());
-  }
 
   return 0;
 }