diff options
author | Alex Lorenz <arphaman@gmail.com> | 2019-08-27 01:03:25 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2019-08-27 01:03:25 +0000 |
commit | 67d25fede9aa7be37b2dcd20e3402f3f190e41f9 (patch) | |
tree | 0169ec81b0d91d5982b84774f7c29f6ab5d12892 /clang/lib/Lex/PPDirectives.cpp | |
parent | 228ffac6786a8719bfb1d0452f49ee49b0a6fc28 (diff) | |
download | bcm5719-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.cpp | 2 |
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) |