]> granicus.if.org Git - clang/commitdiff
Try to work around a Visual C++ bug with copy-assignment.
authorDouglas Gregor <dgregor@apple.com>
Thu, 6 May 2010 18:05:52 +0000 (18:05 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 6 May 2010 18:05:52 +0000 (18:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103190 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Action.h

index afa8bb625477e8dc0b62d74f0ec8d9a6d0043f3d..8b60eed3258938f427c09f65bc4101fb219f559f 100644 (file)
@@ -114,7 +114,7 @@ public:
       : Expr(move(const_cast<FullExprArg&>(Other).Expr)) {}
 
     FullExprArg &operator=(const FullExprArg& Other) {
-      Expr = move(const_cast<FullExprArg&>(Other).Expr);
+      Expr = ExprArg(move(const_cast<FullExprArg&>(Other).Expr));
       return *this;
     }