diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-08 20:10:14 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-08 20:10:14 +0000 |
| commit | 8ee9a827e7010529280b97fd0b594e1e17ece2b7 (patch) | |
| tree | 7a031f6e620b716cec49bfd68931b5f45b56b2a6 /llvm/lib/Debugger/ProgramInfo.cpp | |
| parent | 69e6062f31982e59af45799ec80485eea9de9ef0 (diff) | |
| download | bcm5719-llvm-8ee9a827e7010529280b97fd0b594e1e17ece2b7.tar.gz bcm5719-llvm-8ee9a827e7010529280b97fd0b594e1e17ece2b7.zip | |
Make sure temporary data is not used past its life span.
llvm-svn: 35773
Diffstat (limited to 'llvm/lib/Debugger/ProgramInfo.cpp')
| -rw-r--r-- | llvm/lib/Debugger/ProgramInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp index 833fe7ca167..9d987ea4ad6 100644 --- a/llvm/lib/Debugger/ProgramInfo.cpp +++ b/llvm/lib/Debugger/ProgramInfo.cpp @@ -194,8 +194,8 @@ void SourceFunctionInfo::getSourceLocation(unsigned &RetLineNo, 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(); |

