mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 17:58:22 +00:00
Don't rely on destructed local storage. Thanks, Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35769 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51047859ed
commit
184e67e208
@ -281,8 +281,8 @@ recurseDirectories(const sys::Path& path,
|
|||||||
for (std::set<sys::Path>::iterator I = content.begin(), E = content.end();
|
for (std::set<sys::Path>::iterator I = content.begin(), E = content.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
// Make sure it exists and is a directory
|
// Make sure it exists and is a directory
|
||||||
const sys::FileStatus *Status =
|
sys::PathWithStatus PwS(*I);
|
||||||
sys::PathWithStatus(*I).getFileStatus(false, ErrMsg);
|
const sys::FileStatus *Status = PwS.getFileStatus(false, ErrMsg);
|
||||||
if (!Status)
|
if (!Status)
|
||||||
return true;
|
return true;
|
||||||
if (Status->isDir) {
|
if (Status->isDir) {
|
||||||
@ -310,8 +310,8 @@ bool buildPaths(bool checkExistence, std::string* ErrMsg) {
|
|||||||
if (!aPath.exists())
|
if (!aPath.exists())
|
||||||
throw std::string("File does not exist: ") + Members[i];
|
throw std::string("File does not exist: ") + Members[i];
|
||||||
std::string Err;
|
std::string Err;
|
||||||
const sys::FileStatus *si =
|
sys::PathWithStatus PwS(aPath);
|
||||||
sys::PathWithStatus(aPath).getFileStatus(false, &Err);
|
const sys::FileStatus *si = PwS.getFileStatus(false, &Err);
|
||||||
if (!si)
|
if (!si)
|
||||||
throw Err;
|
throw Err;
|
||||||
if (si->isDir) {
|
if (si->isDir) {
|
||||||
@ -647,8 +647,8 @@ doReplaceOrInsert(std::string* ErrMsg) {
|
|||||||
|
|
||||||
if (found != remaining.end()) {
|
if (found != remaining.end()) {
|
||||||
std::string Err;
|
std::string Err;
|
||||||
const sys::FileStatus *si =
|
sys::PathWithStatus PwS(*found);
|
||||||
sys::PathWithStatus(*found).getFileStatus(false, &Err);
|
const sys::FileStatus *si = PwS.getFileStatus(false, &Err);
|
||||||
if (!si)
|
if (!si)
|
||||||
return true;
|
return true;
|
||||||
if (si->isDir) {
|
if (si->isDir) {
|
||||||
|
Loading…
Reference in New Issue
Block a user