aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-17 15:46:27 +0000
committerChris Lattner <sabre@nondot.org>2009-07-17 15:46:27 +0000
commit6346f963145ed18b6edf50a78753b47db505e912 (patch)
tree532049b5688e8a9a18aacca5cd0348a79e9f95fa
parent56aac3f6c2d23c68f527c8225c74d833e534a262 (diff)
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
-rw-r--r--lib/AST/Expr.cpp4
1 files changed, 1 insertions, 3 deletions
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<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;
}