summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2024-05-07 13:55:44 -0700
committerGitHub <noreply@github.com>2024-05-07 13:55:44 -0700
commit2ad6917c4c524576405f2146424911fd9adb3528 (patch)
tree58478e2641839c5b0b6162fc81c411669a0900d4 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta70ad96b3cc5275246f7f007d1892bb867b75bc0 (diff)
[modules] Accept equivalent module caches from different symlink (#90925)
Use `VFS.equivalent()`, which follows symlinks, to check if two module cache paths are equivalent. This prevents a PCH error when building from a different path that is a symlink of the original. ``` error: PCH was compiled with module cache path '/home/foo/blah/ModuleCache/2IBP1TNT8OR8D', but the path is currently '/data/users/foo/blah/ModuleCache/2IBP1TNT8OR8D' 1 error generated. ```
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions