[llvm-commits] CVS: llvm/lib/Debugger/ProgramInfo.cpp
Reid Spencer
reid at x10sys.com
Sun Apr 8 13:10:31 PDT 2007
Changes in directory llvm/lib/Debugger:
ProgramInfo.cpp updated: 1.22 -> 1.23
---
Log message:
Make sure temporary data is not used past its life span.
---
Diffs of the changes: (+2 -2)
ProgramInfo.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Debugger/ProgramInfo.cpp
diff -u llvm/lib/Debugger/ProgramInfo.cpp:1.22 llvm/lib/Debugger/ProgramInfo.cpp:1.23
--- llvm/lib/Debugger/ProgramInfo.cpp:1.22 Sat Apr 7 13:53:16 2007
+++ llvm/lib/Debugger/ProgramInfo.cpp Sun Apr 8 15:10:14 2007
@@ -194,8 +194,8 @@
ProgramInfo::ProgramInfo(Module *m) : M(m), ProgramTimeStamp(0,0) {
assert(M && "Cannot create program information with a null module!");
- const sys::FileStatus *Stat;
- Stat = sys::PathWithStatus(M->getModuleIdentifier()).getFileStatus();
+ sys::PathWithStatus ModPath(M->getModuleIdentifier());
+ const sys::FileStatus *Stat = ModPath.getFileStatus();
if (Stat)
ProgramTimeStamp = Stat->getTimestamp();
More information about the llvm-commits
mailing list