aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2019-08-27 17:32:42 +0000
committerAlex Lorenz <arphaman@gmail.com>2019-08-27 17:32:42 +0000
commit1c8a4b7204d311ecd7681ef907c4aab99fd91308 (patch)
tree048842701bd54ec5becd7ea88a192834e4e00c2a /clang/lib/Frontend/DependencyFile.cpp
parent3d9b39b733df56a97f47cf88d09b327e78d3d21c (diff)
downloadllvm-1c8a4b7204d311ecd7681ef907c4aab99fd91308.zip
llvm-1c8a4b7204d311ecd7681ef907c4aab99fd91308.tar.gz
llvm-1c8a4b7204d311ecd7681ef907c4aab99fd91308.tar.bz2
Use FileEntryRef for PPCallbacks::HasInclude
This fixes the issue where a filename dependendency was missing if the file that was referenced with __has_include() was accessed through a symlink in an earlier run, if the file manager was reused between runs. llvm-svn: 370081
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index 86e9ccf..b9c753d 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -83,7 +83,7 @@ struct DepCollectorPPCallbacks : public PPCallbacks {
}
void HasInclude(SourceLocation Loc, StringRef SpelledFilename, bool IsAngled,
- const FileEntry *File,
+ Optional<FileEntryRef> File,
SrcMgr::CharacteristicKind FileType) override {
if (!File)
return;