From: Chris Lattner Date: Fri, 17 Jul 2009 15:46:27 +0000 (+0000) Subject: objc methods can't be an operand to callexpr. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6346f963145ed18b6edf50a78753b47db505e912;p=clang objc methods can't be an operand to callexpr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76179 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 320a4f1f72..54739780be 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -226,10 +226,8 @@ void CallExpr::Destroy(ASTContext& C) { FunctionDecl *CallExpr::getDirectCallee() { Expr *CEE = getCallee()->IgnoreParenCasts(); - if (DeclRefExpr *DRE = dyn_cast(CEE)) { - // FIXME: We can follow objective-c methods and C++ member functions... + if (DeclRefExpr *DRE = dyn_cast(CEE)) return dyn_cast(DRE->getDecl()); - } return 0; }