diff options
Diffstat (limited to 'include/clang/AST/Expr.h')
-rw-r--r-- | include/clang/AST/Expr.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 2cc32a1c4f..469bf3cbfd 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -1393,8 +1393,7 @@ public: : Expr(ObjCSelectorExprClass, T), SelName(selInfo), AtLoc(at), RParenLoc(rp) {} - const Selector &getSelector() const { return SelName; } - Selector &getSelector() { return SelName; } + Selector getSelector() const { return SelName; } SourceLocation getAtLoc() const { return AtLoc; } SourceLocation getRParenLoc() const { return RParenLoc; } @@ -1518,7 +1517,6 @@ public: Expr *getReceiver() { return SubExprs[RECEIVER]; } Selector getSelector() const { return SelName; } - Selector &getSelector() { return SelName; } const ObjCMethodDecl *getMethodDecl() const { return MethodProto; } ObjCMethodDecl *getMethodDecl() { return MethodProto; } |