forked from OSchip/llvm-project
objc methods can't be an operand to callexpr.
llvm-svn: 76179
This commit is contained in:
parent
33d1e7db01
commit
5230191e37
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue