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(
1168
1168
liveness->updateForUse (destroy, /* lifetimeEnding=*/ true );
1169
1169
}
1170
1170
for (auto *dvi : debugValues) {
1171
- if (liveness->areUsesWithinBoundary (
1172
- {& dvi-> getOperandRef ()} ,
1171
+ if (liveness->isWithinBoundary (
1172
+ dvi,
1173
1173
deadEndBlocksAnalysis->get (getCurrentDef ()->getFunction ()))) {
1174
1174
continue ;
1175
1175
}
Original file line number Diff line number Diff line change @@ -600,3 +600,15 @@ exit:
600
600
%retval = tuple ()
601
601
return %retval : $()
602
602
}
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