aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Symbol/LineEntry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Symbol/LineEntry.cpp')
-rw-r--r--lldb/source/Symbol/LineEntry.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/lldb/source/Symbol/LineEntry.cpp b/lldb/source/Symbol/LineEntry.cpp
index a3907f4dd9c0..1b2801cd0368 100644
--- a/lldb/source/Symbol/LineEntry.cpp
+++ b/lldb/source/Symbol/LineEntry.cpp
@@ -14,9 +14,8 @@
using namespace lldb_private;
LineEntry::LineEntry()
- : range(), file(), line(LLDB_INVALID_LINE_NUMBER), column(0),
- is_start_of_statement(0), is_start_of_basic_block(0), is_prologue_end(0),
- is_epilogue_begin(0), is_terminal_entry(0) {}
+ : range(), file(), is_start_of_statement(0), is_start_of_basic_block(0),
+ is_prologue_end(0), is_epilogue_begin(0), is_terminal_entry(0) {}
LineEntry::LineEntry(const lldb::SectionSP &section_sp,
lldb::addr_t section_offset, lldb::addr_t byte_size,
@@ -253,9 +252,9 @@ AddressRange LineEntry::GetSameLineContiguousAddressRange(
void LineEntry::ApplyFileMappings(lldb::TargetSP target_sp) {
if (target_sp) {
- // Apply any file remappings to our file
- FileSpec new_file_spec;
- if (target_sp->GetSourcePathMap().FindFile(original_file, new_file_spec))
- file = new_file_spec;
+ // Apply any file remappings to our file.
+ if (auto new_file_spec =
+ target_sp->GetSourcePathMap().FindFile(original_file))
+ file = *new_file_spec;
}
}