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(
1389
1389
// GetImplicitImports.
1390
1390
swift::performImportResolution (*source_file);
1391
1391
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
+ }
1395
1399
1396
1400
std::unique_ptr<SwiftASTManipulator> code_manipulator;
1397
1401
if (repl || !playground) {
Original file line number Diff line number Diff line change 3
3
from lldbsuite .test .decorators import *
4
4
import lldbsuite .test .lldbutil as lldbutil
5
5
6
- @skipIf (bugnumber = "rdar://135575668" )
7
6
class TestSwiftExprImport (TestBase ):
8
7
# Don't run ClangImporter tests if Clangimporter is disabled.
9
8
@skipIf (setting = ('symbols.use-swift-clangimporter' , 'false' ))
Original file line number Diff line number Diff line change 21
21
22
22
23
23
class TestSwiftSimpleExpressions (TestBase ):
24
- @skipIf (bugnumber = "rdar://135575668" )
25
24
@swiftTest
26
25
def test_simple_swift_expressions (self ):
27
26
"""Tests that we can run simple Swift expressions correctly"""
You can’t perform that action at this time.
0 commit comments