Skip to content

Commit 82fdc3a

Browse files
author
Joe Shajrawi
committed
LoadableByAddress: Fix commit 0ca90b8 - add tuple check that went missing when committing the code
1 parent 8b96071 commit 82fdc3a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/IRGen/LoadableByAddress.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,11 @@ static SILType getNewSILType(GenericEnvironment *GenericEnv,
395395
nonOptionalType = optType;
396396
}
397397
if (nonOptionalType.getAs<TupleType>()) {
398-
return getNewTupleType(GenericEnv, Mod, nonOptionalType, storageType);
398+
SILType newSILType =
399+
getNewTupleType(GenericEnv, Mod, nonOptionalType, storageType);
400+
return isLargeLoadableType(GenericEnv, newSILType, Mod)
401+
? newSILType.getAddressType()
402+
: newSILType;
399403
}
400404
SILType newSILType = getNewOptionalFunctionType(GenericEnv, storageType, Mod);
401405
if (newSILType != storageType) {

0 commit comments

Comments
 (0)