llvm.org GIT mirror llvm / 184e67e
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 Reid Spencer 12 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
280280 for (std::set::iterator I = content.begin(), E = content.end();
281281 I != E; ++I) {
282282 // Make sure it exists and is a directory
283 const sys::FileStatus *Status =
284 sys::PathWithStatus(*I).getFileStatus(false, ErrMsg);
283 sys::PathWithStatus PwS(*I);
284 const sys::FileStatus *Status = PwS.getFileStatus(false, ErrMsg);
285285 if (!Status)
286286 return true;
287287 if (Status->isDir) {
309309 if (!aPath.exists())
310310 throw std::string("File does not exist: ") + Members[i];
311311 std::string Err;
312 const sys::FileStatus *si =
313 sys::PathWithStatus(aPath).getFileStatus(false, &Err);
312 sys::PathWithStatus PwS(aPath);
313 const sys::FileStatus *si = PwS.getFileStatus(false, &Err);
314314 if (!si)
315315 throw Err;
316316 if (si->isDir) {
646646
647647 if (found != remaining.end()) {
648648 std::string Err;
649 const sys::FileStatus *si =
650 sys::PathWithStatus(*found).getFileStatus(false, &Err);
649 sys::PathWithStatus PwS(*found);
650 const sys::FileStatus *si = PwS.getFileStatus(false, &Err);
651651 if (!si)
652652 return true;
653653 if (si->isDir) {