Changes in directory llvm/tools/llvm-db:
Commands.cpp updated: 1.12 -> 1.13 --- Log message: Avoid temporary construction and potential for corrupted data access. --- Diffs of the changes: (+2 -3) Commands.cpp | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) Index: llvm/tools/llvm-db/Commands.cpp diff -u llvm/tools/llvm-db/Commands.cpp:1.12 llvm/tools/llvm-db/Commands.cpp:1.13 --- llvm/tools/llvm-db/Commands.cpp:1.12 Sat Apr 7 13:53:16 2007 +++ llvm/tools/llvm-db/Commands.cpp Sun Apr 8 15:06:05 2007 @@ -49,10 +49,9 @@ eliminateRunInfo(); // If the program has been modified, reload it! - sys::Path Program(Dbg.getProgramPath()); + sys::PathWithStatus Program(Dbg.getProgramPath()); std::string Err; - const sys::FileStatus *Status = - sys::PathWithStatus(Program).getFileStatus(false, &Err); + const sys::FileStatus *Status = Program.getFileStatus(false, &Err); if (!Status) throw Err; if (TheProgramInfo->getProgramTimeStamp() != Status->getTimestamp()) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits