Skip to content

Commit 8e89d21

Browse files
committed
Cleanup the Swift GetObjectDescription helpers; mostly coalesce repeated code.
This is purely formal.
1 parent 1dbec56 commit 8e89d21

File tree

3 files changed

+110
-295
lines changed

3 files changed

+110
-295
lines changed

lldb/source/Plugins/ExpressionParser/Swift/SwiftUserExpression.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ bool SwiftUserExpression::Parse(DiagnosticManager &diagnostic_manager,
288288

289289
StackFrame *frame = exe_ctx.GetFramePtr();
290290
if (!frame) {
291+
diagnostic_manager.PutString(eDiagnosticSeverityError,
292+
"couldn't start parsing - no stack frame");
291293
LLDB_LOG(log, "no stack frame");
292294
return false;
293295
}

0 commit comments

Comments
 (0)