[llvm-commits] [llvm] r157644 - /llvm/trunk/include/llvm/ADT/DenseMap.h

Douglas Gregor dgregor at apple.com
Tue May 29 13:33:09 PDT 2012


Author: dgregor
Date: Tue May 29 15:33:09 2012
New Revision: 157644

URL: http://llvm.org/viewvc/llvm-project?rev=157644&view=rev
Log:
DenseMap's move assignment operator needs to return *this

Modified:
    llvm/trunk/include/llvm/ADT/DenseMap.h

Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=157644&r1=157643&r2=157644&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Tue May 29 15:33:09 2012
@@ -256,6 +256,7 @@
     DestroyAll();
     init(0);
     swap(other);
+    return *this;
   }
 #endif
 





More information about the llvm-commits mailing list