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 7bd9be2 commit c714f92Copy full SHA for c714f92
clang/lib/InstallAPI/Frontend.cpp
@@ -94,7 +94,7 @@ InstallAPIContext::findAndRecordFile(const FileEntry *FE,
94
// included. This is primarily to resolve headers found
95
// in a different location than what passed directly as input.
96
StringRef IncludeName = PP.getHeaderSearchInfo().getIncludeNameForHeader(FE);
97
- auto BackupIt = KnownIncludes.find(IncludeName.str());
+ auto BackupIt = KnownIncludes.find(IncludeName);
98
if (BackupIt != KnownIncludes.end()) {
99
KnownFiles[FE] = BackupIt->second;
100
return BackupIt->second;
0 commit comments