Skip to content

Commit 487e8eb

Browse files
committed
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.
1 parent bb0c6b3 commit 487e8eb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/SIL/IR/SILInstruction.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,6 @@ namespace {
544544
auto *X = cast<RefElementAddrInst>(LHS);
545545
if (X->getField() != RHS->getField())
546546
return false;
547-
if (X->getOperand() != RHS->getOperand())
548-
return false;
549547
return true;
550548
}
551549

0 commit comments

Comments
 (0)