mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: remove multiple result values from SILValue
As there are no instructions left which produce multiple result values, this is a NFC regarding the generated SIL and generated code. Although this commit is large, most changes are straightforward adoptions to the changes in the ValueBase and SILValue classes.
This commit is contained in:
@@ -116,7 +116,7 @@ bool ArrayAllocation::mapInitializationStores() {
|
||||
|
||||
// Store to the base.
|
||||
auto *SI = dyn_cast<StoreInst>(Inst);
|
||||
if (SI && SI->getDest() == SILValue(PointerToAddress, 0)) {
|
||||
if (SI && SI->getDest() == PointerToAddress) {
|
||||
// We have already seen an entry for this index bail.
|
||||
if (ElementValueMap.count(0))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user