File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -758,7 +758,7 @@ class IRGenSILFunction :
758
758
if (IGM.IRGen .Opts .DisableDebuggerShadowCopies ||
759
759
IGM.IRGen .Opts .shouldOptimize () || IsAnonymous ||
760
760
isa<llvm::AllocaInst>(Storage) || isa<llvm::UndefValue>(Storage) ||
761
- Storage-> getType () == IGM. RefCountedPtrTy || !needsShadowCopy (Storage))
761
+ !needsShadowCopy (Storage))
762
762
return Storage;
763
763
764
764
// Emit a shadow copy.
Original file line number Diff line number Diff line change @@ -759,9 +759,10 @@ func generic_unsafeGuaranteed_test<T: AnyObject>(_ t : T) -> T {
759
759
}
760
760
761
761
// CHECK-LABEL: define {{.*}} @{{.*}}unsafeGuaranteed_test
762
- // CHECK: [[LOCAL:%.*]] = alloca %swift.refcounted*
762
+ // CHECK: [[LOCAL1:%.*]] = alloca %swift.refcounted*
763
+ // CHECK: [[LOCAL2:%.*]] = alloca %swift.refcounted*
763
764
// CHECK: call %swift.refcounted* @swift_retain(%swift.refcounted* returned %0)
764
- // CHECK: store %swift.refcounted* %0, %swift.refcounted** [[LOCAL ]]
765
+ // CHECK: store %swift.refcounted* %0, %swift.refcounted** [[LOCAL2 ]]
765
766
// CHECK-NOT: call void @swift_release(%swift.refcounted* %0)
766
767
// CHECK: ret %swift.refcounted* %0
767
768
func unsafeGuaranteed_test( _ x: Builtin . NativeObject ) -> Builtin . NativeObject {
You can’t perform that action at this time.
0 commit comments