llvm.org GIT mirror llvm / 7b57fe3
Avoid temporary construction and potential for corrupted data access. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35771 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 12 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4848 eliminateRunInfo();
4949
5050 // If the program has been modified, reload it!
51 sys::Path Program(Dbg.getProgramPath());
51 sys::PathWithStatus Program(Dbg.getProgramPath());
5252 std::string Err;
53 const sys::FileStatus *Status =
54 sys::PathWithStatus(Program).getFileStatus(false, &Err);
53 const sys::FileStatus *Status = Program.getFileStatus(false, &Err);
5554 if (!Status)
5655 throw Err;
5756 if (TheProgramInfo->getProgramTimeStamp() != Status->getTimestamp()) {