[cfe-commits] r76179 - /cfe/trunk/lib/AST/Expr.cpp
Chris Lattner
sabre at nondot.org
Fri Jul 17 08:46:58 PDT 2009
Author: lattner
Date: Fri Jul 17 10:46:27 2009
New Revision: 76179
URL: http://llvm.org/viewvc/llvm-project?rev=76179&view=rev
Log:
objc methods can't be an operand to callexpr.
Modified:
cfe/trunk/lib/AST/Expr.cpp
Modified: cfe/trunk/lib/AST/Expr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Expr.cpp?rev=76179&r1=76178&r2=76179&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Expr.cpp (original)
+++ cfe/trunk/lib/AST/Expr.cpp Fri Jul 17 10:46:27 2009
@@ -226,10 +226,8 @@
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;
}
More information about the cfe-commits
mailing list