Fold the useful features of alist and alist_node into ilist, and
[oota-llvm.git] / include / llvm / ADT / ImmutableMap.h
index ae2a335942d174002ef021913f4052876df8a7bd..bbf34c566d8bfaa8cff069e8c3e9af7b5c276609 100644 (file)
@@ -76,7 +76,8 @@ public:
   /// should use a Factory object to create maps instead of directly
   /// invoking the constructor, but there are cases where make this
   /// constructor public is useful.
-  explicit ImmutableMap(TreeTy* R) : Root(R) {}
+  explicit ImmutableMap(TreeTy* R) : Root(R) {}  
+  explicit ImmutableMap(const TreeTy* R) : Root(const_cast<TreeTy*>(R)) {}
   
   class Factory {
     typename TreeTy::Factory F;