Disable cast optimization for address-only types.

The code gen assumes the type is loadable. Disable for now to avoid bugs.
This commit is contained in:
Joe Groff
2016-07-26 12:40:13 -07:00
parent 5111a42d6d
commit cac313d145
2 changed files with 11 additions and 0 deletions

View File

@@ -424,6 +424,7 @@ public:
}
LoadInst *createLoad(SILLocation Loc, SILValue LV) {
assert(LV->getType().isLoadable(F.getModule()));
return insert(new (F.getModule())
LoadInst(getSILDebugLocation(Loc), LV));
}