Commit dcf5b6f
committed
[clang] separate recursive instantiation check from CodeSynthesisContext
This makes pushing / popping CodeSynthesisContexts much cheaper,
as it delegates to another class this functionality which is not
actually needed in most cases.
It also converts a bunch of these uses into just asserts.
This improves compiler performance a little bit:
Some diagnostics change a little bit, because we avoid printing
a redundant context notes.1 parent 2e6da80 commit dcf5b6f
File tree
5 files changed
+99
-55
lines changed- clang
- include/clang/Sema
- lib/Sema
- test
- SemaCXX
- SemaTemplate
5 files changed
+99
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12995 | 12995 | | |
12996 | 12996 | | |
12997 | 12997 | | |
| 12998 | + | |
| 12999 | + | |
| 13000 | + | |
| 13001 | + | |
| 13002 | + | |
| 13003 | + | |
| 13004 | + | |
| 13005 | + | |
| 13006 | + | |
| 13007 | + | |
| 13008 | + | |
| 13009 | + | |
| 13010 | + | |
| 13011 | + | |
| 13012 | + | |
| 13013 | + | |
| 13014 | + | |
| 13015 | + | |
| 13016 | + | |
| 13017 | + | |
| 13018 | + | |
| 13019 | + | |
| 13020 | + | |
| 13021 | + | |
| 13022 | + | |
| 13023 | + | |
| 13024 | + | |
| 13025 | + | |
| 13026 | + | |
| 13027 | + | |
12998 | 13028 | | |
12999 | 13029 | | |
13000 | 13030 | | |
| |||
13356 | 13386 | | |
13357 | 13387 | | |
13358 | 13388 | | |
13359 | | - | |
13360 | | - | |
13361 | | - | |
13362 | | - | |
13363 | 13389 | | |
13364 | 13390 | | |
13365 | 13391 | | |
13366 | | - | |
13367 | 13392 | | |
13368 | 13393 | | |
13369 | 13394 | | |
| |||
13486 | 13511 | | |
13487 | 13512 | | |
13488 | 13513 | | |
13489 | | - | |
| 13514 | + | |
13490 | 13515 | | |
13491 | 13516 | | |
13492 | 13517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
| 641 | + | |
648 | 642 | | |
649 | | - | |
650 | 643 | | |
651 | 644 | | |
652 | 645 | | |
| |||
901 | 894 | | |
902 | 895 | | |
903 | 896 | | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | 897 | | |
912 | 898 | | |
913 | 899 | | |
| |||
3311 | 3297 | | |
3312 | 3298 | | |
3313 | 3299 | | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
3314 | 3309 | | |
3315 | 3310 | | |
3316 | 3311 | | |
3317 | 3312 | | |
3318 | 3313 | | |
3319 | 3314 | | |
3320 | | - | |
3321 | | - | |
3322 | | - | |
3323 | | - | |
3324 | | - | |
3325 | 3315 | | |
3326 | 3316 | | |
3327 | 3317 | | |
| |||
3559 | 3549 | | |
3560 | 3550 | | |
3561 | 3551 | | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
3562 | 3558 | | |
3563 | 3559 | | |
3564 | 3560 | | |
| |||
3595 | 3591 | | |
3596 | 3592 | | |
3597 | 3593 | | |
3598 | | - | |
3599 | 3594 | | |
3600 | 3595 | | |
3601 | 3596 | | |
| |||
3807 | 3802 | | |
3808 | 3803 | | |
3809 | 3804 | | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
3810 | 3811 | | |
3811 | 3812 | | |
3812 | 3813 | | |
| |||
3824 | 3825 | | |
3825 | 3826 | | |
3826 | 3827 | | |
3827 | | - | |
3828 | | - | |
3829 | 3828 | | |
3830 | 3829 | | |
3831 | 3830 | | |
| |||
3864 | 3863 | | |
3865 | 3864 | | |
3866 | 3865 | | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
3867 | 3875 | | |
3868 | 3876 | | |
3869 | 3877 | | |
| |||
3882 | 3890 | | |
3883 | 3891 | | |
3884 | 3892 | | |
3885 | | - | |
3886 | | - | |
3887 | | - | |
3888 | | - | |
3889 | | - | |
3890 | | - | |
3891 | 3893 | | |
3892 | 3894 | | |
3893 | 3895 | | |
| |||
3968 | 3970 | | |
3969 | 3971 | | |
3970 | 3972 | | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
3971 | 3979 | | |
3972 | 3980 | | |
3973 | 3981 | | |
3974 | | - | |
3975 | | - | |
3976 | 3982 | | |
3977 | 3983 | | |
3978 | 3984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5282 | 5282 | | |
5283 | 5283 | | |
5284 | 5284 | | |
| 5285 | + | |
| 5286 | + | |
| 5287 | + | |
| 5288 | + | |
| 5289 | + | |
| 5290 | + | |
| 5291 | + | |
| 5292 | + | |
| 5293 | + | |
| 5294 | + | |
5285 | 5295 | | |
5286 | 5296 | | |
5287 | 5297 | | |
| |||
5290 | 5300 | | |
5291 | 5301 | | |
5292 | 5302 | | |
5293 | | - | |
5294 | | - | |
5295 | | - | |
5296 | | - | |
5297 | | - | |
5298 | | - | |
5299 | | - | |
5300 | 5303 | | |
5301 | 5304 | | |
5302 | 5305 | | |
| |||
5356 | 5359 | | |
5357 | 5360 | | |
5358 | 5361 | | |
5359 | | - | |
5360 | | - | |
5361 | 5362 | | |
5362 | 5363 | | |
5363 | 5364 | | |
| |||
5515 | 5516 | | |
5516 | 5517 | | |
5517 | 5518 | | |
| 5519 | + | |
| 5520 | + | |
| 5521 | + | |
| 5522 | + | |
| 5523 | + | |
| 5524 | + | |
5518 | 5525 | | |
5519 | 5526 | | |
5520 | 5527 | | |
| |||
5654 | 5661 | | |
5655 | 5662 | | |
5656 | 5663 | | |
5657 | | - | |
| 5664 | + | |
5658 | 5665 | | |
5659 | 5666 | | |
5660 | 5667 | | |
| |||
6223 | 6230 | | |
6224 | 6231 | | |
6225 | 6232 | | |
| 6233 | + | |
| 6234 | + | |
| 6235 | + | |
| 6236 | + | |
| 6237 | + | |
6226 | 6238 | | |
6227 | 6239 | | |
6228 | 6240 | | |
| |||
6246 | 6258 | | |
6247 | 6259 | | |
6248 | 6260 | | |
6249 | | - | |
| 6261 | + | |
6250 | 6262 | | |
6251 | 6263 | | |
6252 | 6264 | | |
| |||
6350 | 6362 | | |
6351 | 6363 | | |
6352 | 6364 | | |
6353 | | - | |
| 6365 | + | |
6354 | 6366 | | |
6355 | 6367 | | |
6356 | 6368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
0 commit comments