objc methods can't be an operand to callexpr.

llvm-svn: 76179
This commit is contained in:
Chris Lattner 2009-07-17 15:46:27 +00:00
parent 33d1e7db01
commit 5230191e37
1 changed files with 1 additions and 3 deletions

View 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;
}