From 64219a2aee02e98a978dbd60d863f488c3369880 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 6 May 2010 18:05:52 +0000 Subject: [PATCH] Try to work around a Visual C++ bug with copy-assignment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103190 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Parse/Action.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index afa8bb6254..8b60eed325 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -114,7 +114,7 @@ public: : Expr(move(const_cast(Other).Expr)) {} FullExprArg &operator=(const FullExprArg& Other) { - Expr = move(const_cast(Other).Expr); + Expr = ExprArg(move(const_cast(Other).Expr)); return *this; } -- 2.40.0