projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c8a9c
)
Avoid temporary construction and potential for corrupted data access.
author
Reid Spencer
<rspencer@reidspencer.com>
Sun, 8 Apr 2007 20:06:05 +0000
(20:06 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Sun, 8 Apr 2007 20:06:05 +0000
(20:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35771
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-db/Commands.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-db/Commands.cpp
b/tools/llvm-db/Commands.cpp
index 487d5ec53604a57f69db6dbef58663db8f3784d2..e0162e395672982c1c2db30127190cc0da45c678 100644
(file)
--- a/
tools/llvm-db/Commands.cpp
+++ b/
tools/llvm-db/Commands.cpp
@@
-49,10
+49,9
@@
void CLIDebugger::startProgramRunning() {
eliminateRunInfo();
// If the program has been modified, reload it!
- sys::Path Program(Dbg.getProgramPath());
+ sys::Path
WithStatus
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()) {