From: Richard Smith Date: Sat, 19 Apr 2014 04:28:00 +0000 (+0000) Subject: Speculative fix for buildbot failure. Apparently Clang 3.1 got move semantics wrong. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad46d685ae06972518bff746b511deb70e7fb709;p=clang 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 --- 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);