llvm.org GIT mirror llvm / 07f3cf7
Added ImmutableMap constructor that accepts a const TreeTy*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53429 91177308-0d34-0410-b5e6-96231b3b80d8 Ted Kremenek 11 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7575 /// should use a Factory object to create maps instead of directly
7676 /// invoking the constructor, but there are cases where make this
7777 /// constructor public is useful.
78 explicit ImmutableMap(TreeTy* R) : Root(R) {}
78 explicit ImmutableMap(TreeTy* R) : Root(R) {}
79 explicit ImmutableMap(const TreeTy* R) : Root(const_cast(R)) {}
7980
8081 class Factory {
8182 typename TreeTy::Factory F;