[llvm-commits] [llvm] r154737 - /llvm/trunk/include/llvm/ADT/StringMap.h

Benjamin Kramer benny.kra at googlemail.com
Sat Apr 14 02:04:57 PDT 2012


Author: d0k
Date: Sat Apr 14 04:04:57 2012
New Revision: 154737

URL: http://llvm.org/viewvc/llvm-project?rev=154737&view=rev
Log:
Make StringMap's copy ctor non-explicit.

Without this gcc doesn't allow us to put a StringMap into a
std::map. Works with clang though.

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

Modified: llvm/trunk/include/llvm/ADT/StringMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringMap.h?rev=154737&r1=154736&r2=154737&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringMap.h (original)
+++ llvm/trunk/include/llvm/ADT/StringMap.h Sat Apr 14 04:04:57 2012
@@ -239,7 +239,7 @@
   explicit StringMap(AllocatorTy A)
     : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
 
-  explicit StringMap(const StringMap &RHS)
+  StringMap(const StringMap &RHS)
     : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {
     assert(RHS.empty() &&
            "Copy ctor from non-empty stringmap not implemented yet!");





More information about the llvm-commits mailing list