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

Richard Smith richard-llvm at metafoo.co.uk
Fri Apr 18 21:28:01 PDT 2014


Author: rsmith
Date: Fri Apr 18 23:28:00 2014
New Revision: 206682

URL: http://llvm.org/viewvc/llvm-project?rev=206682&view=rev
Log:
Speculative fix for buildbot failure. Apparently Clang 3.1 got move semantics wrong.

Modified:
    cfe/trunk/include/clang/AST/ASTVector.h

Modified: cfe/trunk/include/clang/AST/ASTVector.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTVector.h?rev=206682&r1=206681&r2=206682&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTVector.h (original)
+++ cfe/trunk/include/clang/AST/ASTVector.h Fri Apr 18 23:28:00 2014
@@ -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);





More information about the cfe-commits mailing list