Commit 1a860cc
committed
Sema: Simplify adjustSelfTypeForMember() a little bit to avoid a cycle
We used to wrap the base expression in an InOutExpr when accessing a
computed property. This was a vestigial remnant of differences in the
SILGen code paths for stored vs computed property access.
These days SILGen doesn't care and is perfectly happy to call getters
and setters with an LValueType base as well.
This allows us to remove the call to getAccessSemantics(), which for
a 'didSet', had to kick off type checking of the body.
Fixes <rdar://problem/69532933>.1 parent d5febdb commit 1a860cc
File tree
3 files changed
+48
-39
lines changed- lib
- AST
- Sema
- test/decl/var
3 files changed
+48
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | | - | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
1832 | 1847 | | |
1833 | | - | |
1834 | | - | |
| 1848 | + | |
1835 | 1849 | | |
1836 | 1850 | | |
1837 | 1851 | | |
1838 | 1852 | | |
1839 | 1853 | | |
1840 | 1854 | | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | 1855 | | |
1856 | 1856 | | |
1857 | 1857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6871 | 6871 | | |
6872 | 6872 | | |
6873 | 6873 | | |
6874 | | - | |
| 6874 | + | |
| 6875 | + | |
| 6876 | + | |
| 6877 | + | |
| 6878 | + | |
| 6879 | + | |
| 6880 | + | |
6875 | 6881 | | |
6876 | 6882 | | |
6877 | 6883 | | |
| |||
6880 | 6886 | | |
6881 | 6887 | | |
6882 | 6888 | | |
6883 | | - | |
| 6889 | + | |
6884 | 6890 | | |
6885 | 6891 | | |
6886 | 6892 | | |
| |||
6903 | 6909 | | |
6904 | 6910 | | |
6905 | 6911 | | |
6906 | | - | |
6907 | | - | |
6908 | | - | |
6909 | | - | |
6910 | | - | |
6911 | | - | |
6912 | | - | |
6913 | | - | |
6914 | | - | |
6915 | | - | |
6916 | | - | |
6917 | | - | |
6918 | | - | |
6919 | | - | |
6920 | | - | |
6921 | | - | |
6922 | | - | |
6923 | | - | |
6924 | | - | |
6925 | | - | |
| 6912 | + | |
| 6913 | + | |
| 6914 | + | |
| 6915 | + | |
6926 | 6916 | | |
6927 | 6917 | | |
6928 | 6918 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments