diff options
author | Jan Korous <jkorous@apple.com> | 2020-10-22 14:18:13 -0700 |
---|---|---|
committer | Jan Korous <jkorous@apple.com> | 2020-10-22 14:18:28 -0700 |
commit | 8277a513c74b53e5ad7f482f76b27bc8609c66ae (patch) | |
tree | 923bcc5206c255e5ed790e8e1562634c4bbb5462 /clang/lib/Basic/SourceManager.cpp | |
parent | fd14a1f6fff37ef62a35ca0f8bc630ac8b23516d (diff) | |
download | llvm-8277a513c74b53e5ad7f482f76b27bc8609c66ae.zip llvm-8277a513c74b53e5ad7f482f76b27bc8609c66ae.tar.gz llvm-8277a513c74b53e5ad7f482f76b27bc8609c66ae.tar.bz2 |
[SourceManager] Avoid copying SLocEntry in computeMacroArgsCache
Follow-up to e7870223d8b5
Differential Revision: https://reviews.llvm.org/D86230
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index 3bffcb5..db87a6e 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -1761,7 +1761,7 @@ void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache, if (Invalid) return; if (Entry.isFile()) { - auto File = Entry.getFile(); + auto& File = Entry.getFile(); if (File.getFileCharacteristic() == C_User_ModuleMap || File.getFileCharacteristic() == C_System_ModuleMap) continue; |