summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/OptionValueFileSpec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Interpreter/OptionValueFileSpec.cpp')
-rw-r--r--lldb/source/Interpreter/OptionValueFileSpec.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Interpreter/OptionValueFileSpec.cpp b/lldb/source/Interpreter/OptionValueFileSpec.cpp
index 479d57eb27f..f5c292d6f49 100644
--- a/lldb/source/Interpreter/OptionValueFileSpec.cpp
+++ b/lldb/source/Interpreter/OptionValueFileSpec.cpp
@@ -79,7 +79,7 @@ Error OptionValueFileSpec::SetValueFromString(llvm::StringRef value,
m_value_was_set = true;
m_current_value.SetFile(value.str(), m_resolve);
m_data_sp.reset();
- m_data_mod_time.Clear();
+ m_data_mod_time = llvm::sys::TimePoint<>();
NotifyValueChanged();
} else {
error.SetErrorString("invalid value string");
@@ -117,8 +117,7 @@ size_t OptionValueFileSpec::AutoComplete(CommandInterpreter &interpreter,
const lldb::DataBufferSP &
OptionValueFileSpec::GetFileContents(bool null_terminate) {
if (m_current_value) {
- const TimeValue file_mod_time =
- FileSystem::GetModificationTime(m_current_value);
+ const auto file_mod_time = FileSystem::GetModificationTime(m_current_value);
if (m_data_sp && m_data_mod_time == file_mod_time)
return m_data_sp;
if (null_terminate)
OpenPOWER on IntegriCloud