From ad46d685ae06972518bff746b511deb70e7fb709 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 19 Apr 2014 04:28:00 +0000 Subject: [PATCH] Speculative fix for buildbot failure. Apparently Clang 3.1 got move semantics wrong. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206682 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/ASTVector.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/clang/AST/ASTVector.h b/include/clang/AST/ASTVector.h index 088d1348bc..1490a13f84 100644 --- a/include/clang/AST/ASTVector.h +++ b/include/clang/AST/ASTVector.h @@ -58,7 +58,8 @@ public: reserve(C, N); } - ASTVector &operator=(ASTVector O) { + ASTVector &operator=(ASTVector &&RHS) { + ASTVector O(std::move(RHS)); using std::swap; swap(Begin, O.Begin); swap(End, O.End); -- 2.40.0