Commit 6ccfe03
committed
[Runtime] Static constructors and destructors should be an error here.
Except for a handful of places we know about, there should be no static
constructors or destructors in the runtime; they're undesirable because
they inflate start up or shut down times, and in the case of destructors
we can't even guarantee that they will actually run (e.g. if the program
declares that it supports fast termination, they just won't).
It should be OK to change the warnings to errors as a result.
rdar://809652451 parent c965f34 commit 6ccfe03
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments