[FileCollector] move Root creation
authorJan Korous <jkorous@apple.com>
Wed, 29 Apr 2020 18:44:40 +0000 (11:44 -0700)
committerJan Korous <jkorous@apple.com>
Wed, 29 Apr 2020 18:47:23 +0000 (11:47 -0700)
commit4c53f4202a45266ac89ae240c05e2bdcbfc3308f
tree7553e4ee0165c3260a650e7f10e23bf2ce33637a
parent0700cb64b536972c25ef5bbbb764a4232e689abc
[FileCollector] move Root creation

If we don't handle the errors we can't rely on the directory being created early anyway.

Differential Revision: https://reviews.llvm.org/D78959
llvm/include/llvm/Support/FileCollector.h
llvm/lib/Support/FileCollector.cpp