mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[sil] Add support for multiple value instructions by adding MultipleValueInstruction{,Result}.
rdar://31521023
This commit is contained in:
committed by
Michael Gottesman
parent
652edc93f8
commit
6df5462ee2
@@ -360,8 +360,8 @@ MemBehaviorKeyTy AliasAnalysis::toMemoryBehaviorKey(SILInstruction *V1,
|
||||
MemoryBehaviorNodeToIndex.getIndex(V1->getCanonicalSILNodeInObject());
|
||||
assert(idx1 != std::numeric_limits<size_t>::max() &&
|
||||
"~0 index reserved for empty/tombstone keys");
|
||||
size_t idx2 =
|
||||
MemoryBehaviorNodeToIndex.getIndex(V2->getCanonicalSILNodeInObject());
|
||||
size_t idx2 = MemoryBehaviorNodeToIndex.getIndex(
|
||||
V2->getRepresentativeSILNodeInObject());
|
||||
assert(idx2 != std::numeric_limits<size_t>::max() &&
|
||||
"~0 index reserved for empty/tombstone keys");
|
||||
return {idx1, idx2, M};
|
||||
|
||||
Reference in New Issue
Block a user