mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user