]> granicus.if.org Git - clang/commitdiff
Speculative fix for buildbot failure. Apparently Clang 3.1 got move semantics wrong.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 19 Apr 2014 04:28:00 +0000 (04:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 19 Apr 2014 04:28:00 +0000 (04:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206682 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTVector.h

index 088d1348bc13182b484735918b85c3c3e91abf6a..1490a13f843bac09bcf838b85ad7608608bcb9cc 100644 (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);