File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
source/Plugins/ExpressionParser/Swift
clangimporter/expr_import Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1389,9 +1389,13 @@ SwiftExpressionParser::ParseAndImport(
13891389 // GetImplicitImports.
13901390 swift::performImportResolution (*source_file);
13911391
1392- if (expr_diagnostics.HasErrors ())
1393- return make_error<ModuleImportError>(
1394- llvm::toString (expr_diagnostics.GetAllErrors ()));
1392+ if (expr_diagnostics.HasErrors ()) {
1393+ // FIXME: This could be done more elegantly.
1394+ std::string msg = llvm::toString (expr_diagnostics.GetAllErrors ());
1395+ if (StringRef (msg).contains (" : could not build module " ))
1396+ return make_error<ModuleImportError>(msg);
1397+ return llvm::createStringError (msg);
1398+ }
13951399
13961400 std::unique_ptr<SwiftASTManipulator> code_manipulator;
13971401 if (repl || !playground) {
Original file line number Diff line number Diff line change 33from lldbsuite .test .decorators import *
44import lldbsuite .test .lldbutil as lldbutil
55
6- @skipIf (bugnumber = "rdar://135575668" )
76class TestSwiftExprImport (TestBase ):
87 # Don't run ClangImporter tests if Clangimporter is disabled.
98 @skipIf (setting = ('symbols.use-swift-clangimporter' , 'false' ))
Original file line number Diff line number Diff line change 2121
2222
2323class TestSwiftSimpleExpressions (TestBase ):
24- @skipIf (bugnumber = "rdar://135575668" )
2524 @swiftTest
2625 def test_simple_swift_expressions (self ):
2726 """Tests that we can run simple Swift expressions correctly"""
You can’t perform that action at this time.
0 commit comments