[cfe-commits] r48860 - /cfe/trunk/include/clang/AST/Expr.h
Ted Kremenek
kremenek at apple.com
Wed Mar 26 20:47:45 PDT 2008
Author: kremenek
Date: Wed Mar 26 22:47:43 2008
New Revision: 48860
URL: http://llvm.org/viewvc/llvm-project?rev=48860&view=rev
Log:
In ObjCMessageExpr: getSelector() const should just return "Selector", not "const Selector&" because Selector is just a smart pointer.
Modified:
cfe/trunk/include/clang/AST/Expr.h
Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=48860&r1=48859&r2=48860&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Wed Mar 26 22:47:43 2008
@@ -1515,7 +1515,7 @@
const Expr *getReceiver() const { return SubExprs[RECEIVER]; }
Expr *getReceiver() { return SubExprs[RECEIVER]; }
- const Selector &getSelector() const { return SelName; }
+ Selector getSelector() const { return SelName; }
Selector &getSelector() { return SelName; }
const ObjCMethodDecl *getMethodDecl() const { return MethodProto; }
More information about the cfe-commits
mailing list