mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Deserialize all modules with the default resilience strategy when in LLDB
This turns all resilient types into fixed layouts thus allowing LLDB to query their size. The long-term plan is to use remote mirrors for this unformation instead of swift IRGen, but the library is not yet up to the task. rdar://problem/36663932
This commit is contained in:
@@ -200,7 +200,10 @@ FileUnit *SerializedModuleLoader::loadAST(
|
||||
isFramework, loadedModuleFile,
|
||||
&extendedInfo);
|
||||
if (loadInfo.status == serialization::Status::Valid) {
|
||||
M.setResilienceStrategy(extendedInfo.getResilienceStrategy());
|
||||
// In LLDB always use the default resilience strategy, so IRGen can query
|
||||
// the size of resilient types.
|
||||
if (!Ctx.LangOpts.DebuggerSupport)
|
||||
M.setResilienceStrategy(extendedInfo.getResilienceStrategy());
|
||||
|
||||
// We've loaded the file. Now try to bring it into the AST.
|
||||
auto fileUnit = new (Ctx) SerializedASTFile(M, *loadedModuleFile,
|
||||
|
||||
Reference in New Issue
Block a user