File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1168,8 +1168,8 @@ void CanonicalizeOSSALifetime::rewriteCopies(
11681168 liveness->updateForUse (destroy, /* lifetimeEnding=*/ true );
11691169 }
11701170 for (auto *dvi : debugValues) {
1171- if (liveness->areUsesWithinBoundary (
1172- {& dvi-> getOperandRef ()} ,
1171+ if (liveness->isWithinBoundary (
1172+ dvi,
11731173 deadEndBlocksAnalysis->get (getCurrentDef ()->getFunction ()))) {
11741174 continue ;
11751175 }
Original file line number Diff line number Diff line change @@ -600,3 +600,15 @@ exit:
600600 %retval = tuple ()
601601 return %retval : $()
602602}
603+
604+ // CHECK-LABEL: begin running test {{.*}} on dead_arg_debug_dead_end
605+ // CHECK-LABEL: sil [ossa] @dead_arg_debug_dead_end : {{.*}} {
606+ // CHECK: debug_value
607+ // CHECK-LABEL: } // end sil function 'dead_arg_debug_dead_end'
608+ // CHECK-LABEL: end running test {{.*}} on dead_arg_debug_dead_end
609+ sil [ossa] @dead_arg_debug_dead_end : $@convention(thin) (@owned C) -> () {
610+ entry(%c : @owned $C):
611+ debug_value %c : $C
612+ specify_test "canonicalize-ossa-lifetime true false true %c"
613+ unreachable
614+ }
You can’t perform that action at this time.
0 commit comments