[cfe-commits] r103409 - /cfe/trunk/include/clang/Parse/Action.h

Douglas Gregor dgregor at apple.com
Mon May 10 10:28:19 PDT 2010


Author: dgregor
Date: Mon May 10 12:28:19 2010
New Revision: 103409

URL: http://llvm.org/viewvc/llvm-project?rev=103409&view=rev
Log:
Alternative workaround for MSVC compilation failure, from Dimitry Andric

Modified:
    cfe/trunk/include/clang/Parse/Action.h

Modified: cfe/trunk/include/clang/Parse/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Action.h?rev=103409&r1=103408&r2=103409&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/trunk/include/clang/Parse/Action.h Mon May 10 12:28:19 2010
@@ -114,7 +114,7 @@
       : 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 @@
     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;
   };
 





More information about the cfe-commits mailing list