mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix InstructionComparer for ref_element_addr
InstructionComparer should only check for equality on additional state, not operands. Fix visitRefElementAddr which was not using this common pattern.
This commit is contained in:
@@ -544,8 +544,6 @@ namespace {
|
||||
auto *X = cast<RefElementAddrInst>(LHS);
|
||||
if (X->getField() != RHS->getField())
|
||||
return false;
|
||||
if (X->getOperand() != RHS->getOperand())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user