[PATCH] D123771: [clang][lex] NFCI: Use DirectoryEntryRef in HeaderSearch::load*()
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 07:10:52 PDT 2022
jansvoboda11 updated this revision to Diff 436380.
jansvoboda11 added a comment.
Replace the `Dir = File->getLastRef().getDir();` escape hatch with
`FileMgr.getOptionalDirectoryRef(File->getDir()->getName())`. The former was causing failures in
`clang/test/VFS/real-path-found-first.m` on Windows.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123771/new/
https://reviews.llvm.org/D123771
Files:
clang/include/clang/Lex/HeaderSearch.h
clang/lib/Lex/HeaderSearch.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123771.436380.patch
Type: text/x-patch
Size: 10436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220613/739f89f0/attachment.bin>
More information about the cfe-commits
mailing list