[clang][lex] Avoid `DirectoryLookup` copies
commitde9731b7033f0393144299d19765a16cb6ae331f
authorJan Svoboda <jan_svoboda@apple.com>
Sat, 15 Oct 2022 15:42:27 +0000 (15 08:42 -0700)
committerJan Svoboda <jan_svoboda@apple.com>
Thu, 20 Oct 2022 23:12:34 +0000 (20 16:12 -0700)
treee3f3974e62f301605f0b1c8d5af9084bccc8c385
parent283e0a81ef35deec46aa231cb8b9d826060f532a
[clang][lex] Avoid `DirectoryLookup` copies

This patch fixes a performance regression introduced in D121685 that was caused by copying `DirectoryLookup`.

rdar://101206790

Reviewed By: ributzka

Differential Revision: https://reviews.llvm.org/D136019
clang/lib/Lex/HeaderSearch.cpp