We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2077fb8 commit d140182Copy full SHA for d140182
llvm/lib/Support/VirtualFileSystem.cpp
@@ -750,7 +750,7 @@ class InMemoryFileAdaptor : public File {
750
751
class InMemoryDirectory : public InMemoryNode {
752
Status Stat;
753
- std::map<std::string, std::unique_ptr<InMemoryNode>> Entries;
+ std::map<std::string, std::unique_ptr<InMemoryNode>, std::less<>> Entries;
754
755
public:
756
InMemoryDirectory(Status Stat)
@@ -766,7 +766,7 @@ class InMemoryDirectory : public InMemoryNode {
766
UniqueID getUniqueID() const { return Stat.getUniqueID(); }
767
768
InMemoryNode *getChild(StringRef Name) const {
769
- auto I = Entries.find(Name.str());
+ auto I = Entries.find(Name);
770
if (I != Entries.end())
771
return I->second.get();
772
return nullptr;
0 commit comments