We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8f12b3 + 4b6f646 commit d8a6642Copy full SHA for d8a6642
lldb/source/Plugins/ExpressionParser/Swift/SwiftUserExpression.cpp
@@ -319,8 +319,12 @@ static bool AddVariableInfo(
319
}
320
321
// If the import failed, give up.
322
- if (!target_type.IsValid())
+ if (!target_type.IsValid()) {
323
+ // Treat an invalid type for self as a fatal error.
324
+ if (is_self)
325
+ return false;
326
return true;
327
+ }
328
329
// If we couldn't fully realize the type, then we aren't going
330
// to get very far making a local out of it, so discard it here.
0 commit comments