File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
@@ -3610,7 +3610,7 @@ bool ClangImporter::isInOverlayModuleForImportedModule(
3610
3610
importedDC = importedDC->getModuleScopeContext ();
3611
3611
3612
3612
auto importedClangModuleUnit = dyn_cast<ClangModuleUnit>(importedDC);
3613
- if (!importedClangModuleUnit)
3613
+ if (!importedClangModuleUnit || !importedClangModuleUnit-> getClangModule () )
3614
3614
return false ;
3615
3615
3616
3616
auto overlayModule = overlayDC->getParentModule ();
You can’t perform that action at this time.
0 commit comments