aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-23 23:46:51 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-23 23:46:51 +0000
commitb556db435fb1ad2a15580aada1cba0ae6da1c4cb (patch)
treeb7c3063016d37e4c89551b312a035790b1172d31
parent9ae2f076ca5ab1feb3ba95629099ec2319833701 (diff)
Don't call this field 'Expr', it changes lookup in illegal ways that
GCC diagnoses. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111865 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Sema/Action.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/clang/Sema/Action.h b/include/clang/Sema/Action.h
index 008f55d3ba..af4ebdfc5b 100644
--- a/include/clang/Sema/Action.h
+++ b/include/clang/Sema/Action.h
@@ -105,21 +105,21 @@ public:
class FullExprArg {
public:
- FullExprArg(ActionBase &actions) : Expr(0) { }
+ FullExprArg(ActionBase &actions) : E(0) { }
// FIXME: The const_cast here is ugly. RValue references would make this
// much nicer (or we could duplicate a bunch of the move semantics
// emulation code from Ownership.h).
- FullExprArg(const FullExprArg& Other): Expr(Other.Expr) {}
+ FullExprArg(const FullExprArg& Other): E(Other.E) {}
OwningExprResult release() {
- return move(Expr);
+ return move(E);
}
- ExprArg get() const { return Expr; }
+ Expr *get() const { return E; }
- ExprArg operator->() {
- return Expr;
+ Expr *operator->() {
+ return E;
}
private:
@@ -127,9 +127,9 @@ public:
// Action::FullExpr that needs access to the constructor below.
friend class Action;
- explicit FullExprArg(Expr *expr) : Expr(expr) {}
+ explicit FullExprArg(Expr *expr) : E(expr) {}
- Expr *Expr;
+ Expr *E;
};
FullExprArg MakeFullExpr(Expr *Arg) {