File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 43
43
#include < cstdint>
44
44
#include < iterator>
45
45
#include < limits>
46
+ #include < map>
46
47
#include < memory>
47
48
#include < optional>
48
49
#include < string>
@@ -725,7 +726,7 @@ class InMemoryFileAdaptor : public File {
725
726
726
727
class InMemoryDirectory : public InMemoryNode {
727
728
Status Stat;
728
- llvm::StringMap< std::unique_ptr<InMemoryNode>> Entries;
729
+ std::map<std::string, std::unique_ptr<InMemoryNode>> Entries;
729
730
730
731
public:
731
732
InMemoryDirectory (Status Stat)
@@ -741,7 +742,7 @@ class InMemoryDirectory : public InMemoryNode {
741
742
UniqueID getUniqueID () const { return Stat.getUniqueID (); }
742
743
743
744
InMemoryNode *getChild (StringRef Name) const {
744
- auto I = Entries.find (Name);
745
+ auto I = Entries.find (Name. str () );
745
746
if (I != Entries.end ())
746
747
return I->second .get ();
747
748
return nullptr ;
You can’t perform that action at this time.
0 commit comments