Commit fed7373
committed
[cxx-interop] Allow many specializations of a class template
An old piece of logic in ClangImporter was trying to limit the number of instantiations for each C++ class template to prevent long compile times. Unfortunately this started causing hard-to-reproduce deserialization errors on large projects which use many different instantiations of `std::vector` and `std::allocator`.
The instantiation limit was arbitrary, it serves no real purpose and causes issues. This change removes it.
rdar://1583979141 parent 3ee222f commit fed7373
File tree
2 files changed
+6
-20
lines changed- lib/ClangImporter
- test/Interop/Cxx/templates
2 files changed
+6
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3237 | 3237 | | |
3238 | 3238 | | |
3239 | 3239 | | |
3240 | | - | |
3241 | | - | |
3242 | | - | |
3243 | | - | |
3244 | | - | |
3245 | | - | |
3246 | | - | |
3247 | | - | |
3248 | | - | |
3249 | | - | |
3250 | | - | |
3251 | | - | |
3252 | | - | |
3253 | | - | |
3254 | | - | |
3255 | | - | |
3256 | | - | |
3257 | | - | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
3258 | 3245 | | |
3259 | | - | |
3260 | 3246 | | |
3261 | 3247 | | |
3262 | 3248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
0 commit comments