[CrashReproducer] Provide a clean dir path for -fmodules-cache-path
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 9 Dec 2016 03:11:48 +0000 (03:11 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 9 Dec 2016 03:11:48 +0000 (03:11 +0000)
commit5b900dbb1bfe204a552930b746dda0e7ba6cc0dd
treec3adfc1297fa5b4e5b9bd39ab3fd94ffc4bc2563
parent79834db0afd4d9b4567d4a3e4b9040a2b8515b38
[CrashReproducer] Provide a clean dir path for -fmodules-cache-path

The most common workflow with module reproducers involves deleting the
module cache before running the script. This happens because leftovers
from the crash are present in the cache and could trigger unrelated and
confusing errors, misleading from the initial reproduction intent.
Change this to point to a clean path but leave the leftovers untouched.

rdar://problem/28655070

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289176 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Job.cpp
test/Modules/crash-vfs-path-emptydir-entries.m
test/Modules/crash-vfs-path-symlink-component.m
test/Modules/crash-vfs-path-symlink-topheader.m
test/Modules/crash-vfs-path-traversal.m
test/Modules/crash-vfs-relative-incdir.m
test/Modules/crash-vfs-relative-overlay.m
test/Modules/crash-vfs-run-reproducer.m