]> granicus.if.org Git - clang/commit
Canonicalize the path provided by -fmodules-cache-path.
authorAdrian Prantl <aprantl@apple.com>
Tue, 14 Mar 2017 23:07:49 +0000 (23:07 +0000)
committerAdrian Prantl <aprantl@apple.com>
Tue, 14 Mar 2017 23:07:49 +0000 (23:07 +0000)
commita9f5f0a950fe42b099dffdc7f98f195d854d5b5b
tree25afa3738fdfec09d985a2d4560dc5fc2cfc617e
parent536f001da19657d249b5ea895196abb65447c779
Canonicalize the path provided by -fmodules-cache-path.

This fixes lookup mismatches that could happen when the module cache
path contained a '/./' component.

<rdar://problem/30413458>

Differential Revision: https://reviews.llvm.org/D30915

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297790 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/CompilerInvocation.cpp
test/Modules/Inputs/outofdate-rebuild/AppKit.h [new file with mode: 0644]
test/Modules/Inputs/outofdate-rebuild/Cocoa.h [new file with mode: 0644]
test/Modules/Inputs/outofdate-rebuild/CoreText.h [new file with mode: 0644]
test/Modules/Inputs/outofdate-rebuild/CoreVideo.h [new file with mode: 0644]
test/Modules/Inputs/outofdate-rebuild/Foundation.h [new file with mode: 0644]
test/Modules/Inputs/outofdate-rebuild/module.modulemap [new file with mode: 0644]
test/Modules/modules-cache-path-canonicalization.m [new file with mode: 0644]