File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -523,7 +523,8 @@ class HashVisitor : public SILInstructionVisitor<HashVisitor, llvm::hash_code> {
523
523
524
524
hash_code visitDynamicPackIndexInst (DynamicPackIndexInst *X) {
525
525
return llvm::hash_combine (
526
- X->getKind (), X->getIndexedPackType (), &X->getOperandRef ());
526
+ X->getKind (), X->getIndexedPackType (),
527
+ tryLookThroughOwnershipInsts (&X->getOperandRef ()));
527
528
}
528
529
529
530
hash_code visitTuplePackElementAddrInst (TuplePackElementAddrInst *X) {
@@ -585,7 +586,7 @@ bool llvm::DenseMapInfo<SimpleValue>::isEqual(SimpleValue LHS,
585
586
};
586
587
bool isEqual =
587
588
LHSI->getKind () == RHSI->getKind () && LHSI->isIdenticalTo (RHSI, opCmp);
588
- #ifdef NDEBUG
589
+ #ifndef NDEBUG
589
590
if (isEqual && getHashValue (LHS) != getHashValue (RHS)) {
590
591
llvm::dbgs () << " LHS: " ;
591
592
LHSI->dump ();
You can’t perform that action at this time.
0 commit comments