mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove assertion all together and use getAddressOfStackInit instead of dyn_cast to StoreInst
This commit is contained in:
@@ -472,9 +472,6 @@ SILValue swift::castValueToABICompatibleType(SILBuilder *builder,
|
||||
if (srcTy == destTy)
|
||||
return value;
|
||||
|
||||
if (srcTy.isAddress() == destTy.isAddress())
|
||||
return nullptr;
|
||||
|
||||
if (srcTy.isAddress() && destTy.isAddress()) {
|
||||
// Cast between two addresses and that's it.
|
||||
return builder->createUncheckedAddrCast(loc, value, destTy);
|
||||
|
||||
Reference in New Issue
Block a user