summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2019-08-27 01:03:25 +0000
committerAlex Lorenz <arphaman@gmail.com>2019-08-27 01:03:25 +0000
commit67d25fede9aa7be37b2dcd20e3402f3f190e41f9 (patch)
tree0169ec81b0d91d5982b84774f7c29f6ab5d12892 /clang/lib/Lex/PPDirectives.cpp
parent228ffac6786a8719bfb1d0452f49ee49b0a6fc28 (diff)
downloadbcm5719-llvm-67d25fede9aa7be37b2dcd20e3402f3f190e41f9.tar.gz
bcm5719-llvm-67d25fede9aa7be37b2dcd20e3402f3f190e41f9.zip
Use FileEntryRef for PPCallbacks::FileSkipped
This fixes the issue where a filename dependendency was missing if the file that was skipped was included through a symlink in an earlier run, if the file manager was reused between runs. llvm-svn: 369998
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r--clang/lib/Lex/PPDirectives.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 2642807b731..5eac1da115c 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -2029,7 +2029,7 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
RelativePath, Action == Import ? SuggestedModule.getModule() : nullptr,
FileCharacter);
if (Action == Skip && File)
- Callbacks->FileSkipped(File->getFileEntry(), FilenameTok, FileCharacter);
+ Callbacks->FileSkipped(*File, FilenameTok, FileCharacter);
}
if (!File)
OpenPOWER on IntegriCloud