Skip to content

Commit 7c6db59

Browse files
committed
Address Adrian's feedback
1 parent bbdaa75 commit 7c6db59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lldb/source/Core/Debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ bool Debugger::FormatDisassemblerAddress(const FormatEntity::Entry *format,
15361536
FormatEntity::Entry format_entry;
15371537
if (format)
15381538
format_entry = *format;
1539-
else if (exe_ctx != nullptr && exe_ctx->HasTargetScope())
1539+
else if (exe_ctx && exe_ctx->HasTargetScope())
15401540
format_entry = exe_ctx->GetTargetRef().GetDebugger().GetDisassemblyFormat();
15411541
else
15421542
FormatEntity::Parse("${addr}: ", format_entry);

lldb/source/Core/Statusline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,5 +148,5 @@ void Statusline::Redraw(bool update) {
148148
FormatEntity::Format(format, stream, &symbol_ctx, &exe_ctx, nullptr, nullptr,
149149
false, false);
150150

151-
Draw(std::string(stream.GetString()));
151+
Draw(stream.GetString().str());
152152
}

0 commit comments

Comments
 (0)