Commit cce0296
committed
AST/SILGen: Make availability ranges stored by
Rather than representing a missing availability range on `PoundAvailableInfo`
with a default-constructed `AvailabilityRange` (empty), store the ranges as
optionals instead. This allows an empty range to represent an availability
condition which is known to be false at compile time, which will be necessary
when generating SIL for `if #available` queries that check custom availability
domains.PoundAvailableInfo optional.1 parent e943c4b commit cce0296
File tree
3 files changed
+53
-22
lines changed- include/swift/AST
- lib
- SILGen
- Sema
3 files changed
+53
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
542 | | - | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
543 | 545 | | |
544 | 546 | | |
545 | | - | |
| 547 | + | |
546 | 548 | | |
547 | 549 | | |
548 | 550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1939 | 1939 | | |
1940 | 1940 | | |
1941 | 1941 | | |
1942 | | - | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
1943 | 1954 | | |
1944 | 1955 | | |
1945 | 1956 | | |
1946 | | - | |
1947 | | - | |
| 1957 | + | |
| 1958 | + | |
1948 | 1959 | | |
1949 | 1960 | | |
1950 | 1961 | | |
| |||
1954 | 1965 | | |
1955 | 1966 | | |
1956 | 1967 | | |
1957 | | - | |
| 1968 | + | |
1958 | 1969 | | |
1959 | | - | |
1960 | | - | |
1961 | | - | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
1962 | 1980 | | |
1963 | 1981 | | |
1964 | 1982 | | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
1971 | 1991 | | |
1972 | 1992 | | |
1973 | 1993 | | |
1974 | | - | |
1975 | | - | |
| 1994 | + | |
| 1995 | + | |
1976 | 1996 | | |
1977 | 1997 | | |
1978 | 1998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3656 | 3656 | | |
3657 | 3657 | | |
3658 | 3658 | | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
3659 | 3667 | | |
3660 | 3668 | | |
3661 | | - | |
| 3669 | + | |
| 3670 | + | |
3662 | 3671 | | |
3663 | 3672 | | |
3664 | 3673 | | |
| |||
3671 | 3680 | | |
3672 | 3681 | | |
3673 | 3682 | | |
3674 | | - | |
| 3683 | + | |
3675 | 3684 | | |
3676 | 3685 | | |
3677 | 3686 | | |
| |||
0 commit comments