aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-10 17:28:19 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-10 17:28:19 +0000
commitc896ea80bb7289a3f7eef57d3acdcd445b6851db (patch)
treea04f9210e8f9a2c91dafc4ae6c03ece12a24e5c2
parent258cf2766859f706bcd231a48593fbb6a1a1d0fe (diff)
Alternative workaround for MSVC compilation failure, from Dimitry Andric
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103409 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Parse/Action.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h
index 316d562cff..97aaa1c082 100644
--- a/include/clang/Parse/Action.h
+++ b/include/clang/Parse/Action.h
@@ -114,7 +114,7 @@ public:
: Expr(move(const_cast<FullExprArg&>(Other).Expr)) {}
FullExprArg &operator=(const FullExprArg& Other) {
- Expr = ExprArg(move(const_cast<FullExprArg&>(Other).Expr));
+ Expr.operator=(move(const_cast<FullExprArg&>(Other).Expr));
return *this;
}
@@ -134,13 +134,6 @@ public:
explicit FullExprArg(ExprArg expr)
: Expr(move(expr)) {}
-#if defined(_MSC_VER)
- // Last tested with Visual Studio 2008.
- // Visual C++ complains about the operator= above, claiming that Expr
- // is not accessible.
- public:
-#endif
-
ExprArg Expr;
};