mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Further enum support under opaque value mode: Builtins and address only types. Including opaque tuples as a return value. Adds library / stdlib unit tests.
This commit is contained in:
@@ -603,7 +603,9 @@ public:
|
||||
|
||||
SILType getLoweredLoadableType(Type t) {
|
||||
const TypeLowering &ti = getTypeLowering(t);
|
||||
assert(ti.isLoadable() && "unexpected address-only type");
|
||||
assert(
|
||||
(ti.isLoadable() || !SILModuleConventions(M).useLoweredAddresses()) &&
|
||||
"unexpected address-only type");
|
||||
return ti.getLoweredType();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user