mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
An assert checking the invariant of the module passed to alreadyImportedTLM being a top-level module would dereference a null pointer in the case where the clang module contained syntax errors, since findUnderlyingClangModule would return null. Instead call the bespoke isSubmodule function that already performs this null check. This fixes the lldb test lldb/test/API/lang/swift/clangimporter/expr_import/TestSwiftExprImport.py.
63 KiB
63 KiB