File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ void SILGenFunction::emitObjCDestructor(SILDeclRef dtor) {
207
207
// We won't actually emit the block until we finish with the destructor body.
208
208
prepareEpilog (Type (), false , CleanupLocation::get (loc));
209
209
210
+ emitProfilerIncrement (dd->getBody ());
210
211
// Emit the destructor body.
211
212
emitStmt (dd->getBody ());
212
213
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend -Xllvm -sil-full-demangle -suppress-warnings -profile-generate -profile-coverage-mapping -emit-sorted-sil -emit-sil -module-name coverage_deinit %s | %FileCheck %s
2
+ // REQUIRES: objc_interop
3
+
4
+ import Foundation
5
+
6
+ public class Derived : NSString {
7
+ // CHECK-LABEL: sil @_T015coverage_deinit7DerivedCfD
8
+ // CHECK: builtin "int_instrprof_increment"
9
+ // CHECK-NEXT: super_method {{.*}} : $Derived, #NSString.deinit!deallocator.foreign
10
+ deinit {
11
+ }
12
+ }
13
+
14
+ // CHECK-LABEL: sil_coverage_map "{{.*}}coverage_deinit.swift" _T015coverage_deinit7DerivedCfD
15
+ // CHECK-NEXT: [[@LINE-5]]:10 -> [[@LINE-4]]:4 : 0
You can’t perform that action at this time.
0 commit comments