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

Alex Rosenberg alexr at leftfield.org
Fri Jan 4 16:21:12 PST 2013


Author: alexr
Date: Fri Jan  4 18:21:12 2013
New Revision: 171567

URL: http://llvm.org/viewvc/llvm-project?rev=171567&view=rev
Log:
Fix warnings from llvm-gcc as seen on darwin10 (10.6).

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=171567&r1=171566&r2=171567&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Fri Jan  4 18:21:12 2013
@@ -531,13 +531,13 @@
     init(NumInitBuckets);
   }
 
-  DenseMap(const DenseMap &other) {
+  DenseMap(const DenseMap &other) : BaseT() {
     init(0);
     copyFrom(other);
   }
 
 #if LLVM_HAS_RVALUE_REFERENCES
-  DenseMap(DenseMap &&other) {
+  DenseMap(DenseMap &&other) : BaseT() {
     init(0);
     swap(other);
   }





More information about the llvm-commits mailing list