Speculative fix for buildbot failure. Apparently Clang 3.1 got move semantics wrong.

llvm-svn: 206682
This commit is contained in:
Richard Smith 2014-04-19 04:28:00 +00:00
parent a9db0019a2
commit 3c326b36cc
1 changed files with 2 additions and 1 deletions

View File

@ -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);