Skip to content

Commit fb4eac3

Browse files
authored
Merge pull request #10346 from augusto2112/fix-unused-self
2 parents 5556acc + 0fb2c0d commit fb4eac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ findSwiftSelf(StackFrame &frame, lldb::VariableSP self_var_sp) {
157157
// 2) If (1) fails, try finding the type of `self` from its Variable.
158158
if (!info.type.IsValid())
159159
if (Type *self_lldb_type = self_var_sp->GetType())
160-
info.type = self_var_sp->GetType()->GetForwardCompilerType();
160+
info.type = self_lldb_type->GetForwardCompilerType();
161161

162162
// 3) If (1) and (2) fail, give up.
163163
if (!info.type.IsValid())

0 commit comments

Comments
 (0)