diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-17 15:46:27 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-17 15:46:27 +0000 |
| commit | 5230191e37d3273875492c921c762aed42cbaf4d (patch) | |
| tree | 84810f84676bd1163eb73b6b7dcf8bce265c92bb /clang/lib/AST/Expr.cpp | |
| parent | 33d1e7db017a5354c50415b110a689f094e59ea5 (diff) | |
| download | bcm5719-llvm-5230191e37d3273875492c921c762aed42cbaf4d.tar.gz bcm5719-llvm-5230191e37d3273875492c921c762aed42cbaf4d.zip | |
objc methods can't be an operand to callexpr.
llvm-svn: 76179
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
| -rw-r--r-- | clang/lib/AST/Expr.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index 320a4f1f72e..54739780bec 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/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<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; } |

