aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-db/Commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-db/Commands.cpp')
-rw-r--r--tools/llvm-db/Commands.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-db/Commands.cpp b/tools/llvm-db/Commands.cpp
index da07769..5a8aa2f 100644
--- a/tools/llvm-db/Commands.cpp
+++ b/tools/llvm-db/Commands.cpp
@@ -50,11 +50,11 @@ void CLIDebugger::startProgramRunning() {
// If the program has been modified, reload it!
sys::Path Program(Dbg.getProgramPath());
- sys::FileStatus Status;
std::string Err;
- if (Program.getFileStatus(Status, &Err))
+ const sys::FileStatus *Status = Program.getFileStatus(false, &Err);
+ if (!Status)
throw Err;
- if (TheProgramInfo->getProgramTimeStamp() != Status.getTimestamp()) {
+ if (TheProgramInfo->getProgramTimeStamp() != Status->getTimestamp()) {
std::cout << "'" << Program << "' has changed; re-reading program.\n";
// Unload an existing program. This kills the program if necessary.