dexonsmith added inline comments.
================
Comment at: clang/lib/Basic/SourceManager.cpp:1764
     if (Entry.isFile()) {
-      SourceLocation IncludeLoc = Entry.getFile().getIncludeLoc();
+      auto File = Entry.getFile();
+      if (File.getFileCharacteristic() == C_User_ModuleMap ||
----------------
It seems unintentinoal to copy out the `FileInfo` here. Should this be a 
reference?
```
auto &File = Entry.getFile();
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86230/new/

https://reviews.llvm.org/D86230

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D86230: [S... Jan Korous via Phabricator via cfe-commits
    • [PATCH] D8623... Duncan P. N. Exon Smith via Phabricator via cfe-commits

Reply via email to