Correctly constify clang::CXXMemberCallExpr::getRecordDecl()

llvm-svn: 156074
This commit is contained in:
David Blaikie 2012-05-03 16:25:49 +00:00
parent c92c31674e
commit c0f5866169
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -458,7 +458,7 @@ CXXMethodDecl *CXXMemberCallExpr::getMethodDecl() const {
}
CXXRecordDecl *CXXMemberCallExpr::getRecordDecl() {
CXXRecordDecl *CXXMemberCallExpr::getRecordDecl() const {
Expr* ThisArg = getImplicitObjectArgument();
if (!ThisArg)
return 0;