mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil-opaque-values] fix an assert in LowerAggregates.
This commit is contained in:
@@ -173,7 +173,8 @@ static bool expandReleaseValue(ReleaseValueInst *DV) {
|
||||
|
||||
// If we have an address only type, do nothing.
|
||||
SILType Type = Value->getType();
|
||||
assert(Type.isLoadable(Module) &&
|
||||
assert(!SILModuleConventions(Module).useLoweredAddresses()
|
||||
|| Type.isLoadable(Module) &&
|
||||
"release_value should never be called on a non-loadable type.");
|
||||
|
||||
if (!shouldExpand(Module, Type.getObjectType()))
|
||||
|
||||
Reference in New Issue
Block a user