[Driver] Create non-existent directory for -fcrash-diagnostics-dir
authorPetr Hosek <phosek@chromium.org>
Sat, 4 May 2019 00:55:14 +0000 (00:55 +0000)
committerPetr Hosek <phosek@chromium.org>
Sat, 4 May 2019 00:55:14 +0000 (00:55 +0000)
commit1e393064fa2732e721524f95a12348b0fd981167
tree0a6d10081b778181c1aff2463f5e9f0a7fbc6f7c
parent3c7688bd577bf328878edf8d82c202a01ca915e2
[Driver] Create non-existent directory for -fcrash-diagnostics-dir

When user specifies non-existent directory to -fcrash-diagnostics-dir,
create it rather than failing with an error as would be the case before.

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

llvm-svn: 359954
clang/lib/Driver/Driver.cpp
clang/test/Driver/crash-diagnostics-dir.c