mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILGen: Use resilience expansion when deciding if we need to use materializeForSet or not
This commit is contained in:
@@ -1146,10 +1146,8 @@ namespace {
|
||||
|
||||
// If the declaration is in a different resilience domain, we have
|
||||
// to use materializeForSet.
|
||||
//
|
||||
// FIXME: Use correct ResilienceExpansion if SGF is @transparent
|
||||
if (!decl->hasFixedLayout(SGF.SGM.M.getSwiftModule(),
|
||||
ResilienceExpansion::Maximal))
|
||||
SGF.F.getResilienceExpansion()))
|
||||
return true;
|
||||
|
||||
// If the declaration is dynamically dispatched through a class,
|
||||
|
||||
Reference in New Issue
Block a user