]> granicus.if.org Git - clang/commit
Avoid failure to canonicalize '..'.
authorSean Silva <chisophugis@gmail.com>
Thu, 30 Jul 2015 00:26:34 +0000 (00:26 +0000)
committerSean Silva <chisophugis@gmail.com>
Thu, 30 Jul 2015 00:26:34 +0000 (00:26 +0000)
commit16f0c0ab9dbb96735e6faf83d5188a8b73ae31b3
tree8c0edbee78c735da6c44be8194727d123a4a2152
parent0e4cb2fe80014791ff741075699cf224363ac00c
Avoid failure to canonicalize '..'.

Also fix completely broken and untested code which was hiding the
primary bug. The !LLVM_ON_UNIX branch of the ifdef was actually a no-op.

I ran into this in the wild. It was causing failures in our SDK build.

Ideally we'd have a perfect llvm::sys::fs::canonical, but at least this
is a step in the right direction, and fixes an obviously broken case.
In some sense the test case I've added here is an integration test. We
should have these routines thoroughly unit tested in llvm::sys::fs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243597 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/FileManager.cpp
test/Modules/Inputs/module-map-path-hash/a.h [new file with mode: 0644]
test/Modules/Inputs/module-map-path-hash/module.modulemap [new file with mode: 0644]
test/Modules/module-map-path-hash.cpp [new file with mode: 0644]