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:
Joe Shajrawi
2017-03-15 14:00:47 -07:00
parent 067c867e5d
commit 444b59ccbe
3 changed files with 46 additions and 2 deletions

View File

@@ -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();
}