Commit 2b32ad1
authored
[Clang] Only remove lambda scope after computing evaluation context (#154106)
The immediate evaluation context needs the lambda scope info to
propagate some flags, however that LSI was removed in
ActOnFinishFunctionBody which happened before rebuilding a lambda
expression.
This also converts the wrapper function to default arguments as a
drive-by fix.
Fixes #1457761 parent f55dc08 commit 2b32ad1
File tree
6 files changed
+53
-28
lines changed- clang
- docs
- include/clang/Sema
- lib/Sema
- test/SemaCXX
6 files changed
+53
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4176 | 4176 | | |
4177 | 4177 | | |
4178 | 4178 | | |
4179 | | - | |
4180 | | - | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
4181 | 4188 | | |
4182 | 4189 | | |
4183 | 4190 | | |
| |||
6874 | 6881 | | |
6875 | 6882 | | |
6876 | 6883 | | |
6877 | | - | |
| 6884 | + | |
6878 | 6885 | | |
6879 | 6886 | | |
6880 | 6887 | | |
6881 | 6888 | | |
6882 | 6889 | | |
6883 | | - | |
| 6890 | + | |
6884 | 6891 | | |
6885 | 6892 | | |
6886 | 6893 | | |
6887 | 6894 | | |
6888 | 6895 | | |
6889 | | - | |
| 6896 | + | |
6890 | 6897 | | |
6891 | 6898 | | |
6892 | 6899 | | |
6893 | | - | |
| 6900 | + | |
6894 | 6901 | | |
6895 | 6902 | | |
6896 | 6903 | | |
| |||
9140 | 9147 | | |
9141 | 9148 | | |
9142 | 9149 | | |
9143 | | - | |
9144 | | - | |
| 9150 | + | |
9145 | 9151 | | |
9146 | 9152 | | |
9147 | 9153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16228 | 16228 | | |
16229 | 16229 | | |
16230 | 16230 | | |
16231 | | - | |
16232 | | - | |
16233 | | - | |
16234 | | - | |
16235 | 16231 | | |
16236 | 16232 | | |
16237 | 16233 | | |
| |||
16302 | 16298 | | |
16303 | 16299 | | |
16304 | 16300 | | |
16305 | | - | |
16306 | | - | |
| 16301 | + | |
| 16302 | + | |
16307 | 16303 | | |
16308 | 16304 | | |
16309 | 16305 | | |
| |||
16760 | 16756 | | |
16761 | 16757 | | |
16762 | 16758 | | |
16763 | | - | |
| 16759 | + | |
| 16760 | + | |
16764 | 16761 | | |
16765 | 16762 | | |
16766 | 16763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1968 | 1968 | | |
1969 | 1969 | | |
1970 | 1970 | | |
1971 | | - | |
| 1971 | + | |
1972 | 1972 | | |
1973 | 1973 | | |
1974 | 1974 | | |
1975 | 1975 | | |
1976 | | - | |
| 1976 | + | |
| 1977 | + | |
1977 | 1978 | | |
1978 | | - | |
| 1979 | + | |
1979 | 1980 | | |
1980 | 1981 | | |
1981 | 1982 | | |
| |||
2132 | 2133 | | |
2133 | 2134 | | |
2134 | 2135 | | |
2135 | | - | |
2136 | | - | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
2137 | 2139 | | |
2138 | 2140 | | |
2139 | 2141 | | |
| |||
2170 | 2172 | | |
2171 | 2173 | | |
2172 | 2174 | | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
2173 | 2181 | | |
2174 | 2182 | | |
2175 | 2183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4051 | 4051 | | |
4052 | 4052 | | |
4053 | 4053 | | |
4054 | | - | |
| 4054 | + | |
4055 | 4055 | | |
4056 | 4056 | | |
4057 | 4057 | | |
| |||
15694 | 15694 | | |
15695 | 15695 | | |
15696 | 15696 | | |
15697 | | - | |
15698 | | - | |
15699 | | - | |
15700 | | - | |
15701 | 15697 | | |
15702 | | - | |
| 15698 | + | |
| 15699 | + | |
15703 | 15700 | | |
15704 | 15701 | | |
15705 | 15702 | | |
| |||
15735 | 15732 | | |
15736 | 15733 | | |
15737 | 15734 | | |
15738 | | - | |
| 15735 | + | |
15739 | 15736 | | |
15740 | 15737 | | |
15741 | 15738 | | |
15742 | | - | |
| 15739 | + | |
15743 | 15740 | | |
15744 | 15741 | | |
15745 | 15742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
0 commit comments