File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
lldb/source/Plugins/ExpressionParser/Swift Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1280,6 +1280,13 @@ static llvm::Expected<ParsedExpression> ParseAndImport(
1280
1280
// inserting them in.
1281
1281
swift_ast_context->AddDebuggerClient (external_lookup);
1282
1282
1283
+ if (swift_ast_context->HasErrors ())
1284
+ return make_error<SwiftASTContextError>();
1285
+
1286
+ // Resolve the file's imports, including the implicit ones returned from
1287
+ // GetImplicitImports.
1288
+ swift::performImportResolution (*source_file);
1289
+
1283
1290
if (swift_ast_context->HasErrors ())
1284
1291
return make_error<SwiftASTContextError>();
1285
1292
@@ -1331,11 +1338,6 @@ static llvm::Expected<ParsedExpression> ParseAndImport(
1331
1338
stack_frame_sp.reset ();
1332
1339
}
1333
1340
1334
- swift::performImportResolution (*source_file);
1335
-
1336
- if (swift_ast_context->HasErrors ())
1337
- return make_error<SwiftASTContextError>();
1338
-
1339
1341
// Cache the source file's imports such that they're accessible to future
1340
1342
// expression evaluations.
1341
1343
{
You can’t perform that action at this time.
0 commit comments