forked from OSchip/llvm-project
Correctly constify clang::CXXMemberCallExpr::getRecordDecl()
llvm-svn: 156074
This commit is contained in:
parent
c92c31674e
commit
c0f5866169
|
@ -118,7 +118,7 @@ public:
|
|||
/// declaration as that of the class context of the CXXMethodDecl which this
|
||||
/// function is calling.
|
||||
/// FIXME: Returns 0 for member pointer call exprs.
|
||||
CXXRecordDecl *getRecordDecl();
|
||||
CXXRecordDecl *getRecordDecl() const;
|
||||
|
||||
static bool classof(const Stmt *T) {
|
||||
return T->getStmtClass() == CXXMemberCallExprClass;
|
||||
|
|
|
@ -458,7 +458,7 @@ CXXMethodDecl *CXXMemberCallExpr::getMethodDecl() const {
|
|||
}
|
||||
|
||||
|
||||
CXXRecordDecl *CXXMemberCallExpr::getRecordDecl() {
|
||||
CXXRecordDecl *CXXMemberCallExpr::getRecordDecl() const {
|
||||
Expr* ThisArg = getImplicitObjectArgument();
|
||||
if (!ThisArg)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue