diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2018-11-19 13:37:46 +0000 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2018-11-19 13:37:46 +0000 |
| commit | e84385fef88d1e48bc63d31a9cf03c1dab2eb420 (patch) | |
| tree | bfee58427b285adb75784569a4c79f4fc15059f9 /llvm/lib/CodeGen/TargetLoweringBase.cpp | |
| parent | 71fdb5764086bf8cbcb84666002090032d152caa (diff) | |
| download | bcm5719-llvm-e84385fef88d1e48bc63d31a9cf03c1dab2eb420.tar.gz bcm5719-llvm-e84385fef88d1e48bc63d31a9cf03c1dab2eb420.zip | |
[FileManager] getFile(open=true) after getFile(open=false) should open the file.
Summary:
Old behavior is to just return the cached entry regardless of opened-ness.
That feels buggy (though I guess nobody ever actually needed this).
This came up in the context of clangd+clang-tidy integration: we're
going to getFile(open=false) to replay preprocessor actions obscured by
the preamble, but the compilation may subsequently getFile(open=true)
for non-preamble includes.
Reviewers: ilya-biryukov
Subscribers: ioeric, kadircet, cfe-commits
Differential Revision: https://reviews.llvm.org/D54691
llvm-svn: 347205
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
0 files changed, 0 insertions, 0 deletions

