Skip to content

Commit 9a59bab

Browse files
committed
[SourceManager] Avoid copying SLocEntry in computeMacroArgsCache
Follow-up to e787022 Differential Revision: https://reviews.llvm.org/D86230
1 parent d2f38c6 commit 9a59bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Basic/SourceManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache,
17911791
if (Invalid)
17921792
return;
17931793
if (Entry.isFile()) {
1794-
auto File = Entry.getFile();
1794+
auto& File = Entry.getFile();
17951795
if (File.getFileCharacteristic() == C_User_ModuleMap ||
17961796
File.getFileCharacteristic() == C_System_ModuleMap)
17971797
continue;

0 commit comments

Comments
 (0)