Files
swift-mirror/lib/Sema/ImportResolution.cpp
Henrik G. Olsson edb48dff8c [ImportResolution] Gracefully handle importing broken clang module
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.
2025-09-19 15:49:44 -07:00

63 KiB