Commit 0715522
committed
[cxx-interop] Check for simple destructors when checking value semantics
hasDestroyTypeOperations() does not account for the scenario where
decl has an implicit destructor that has not yet been materialized
(i.e., using clang::Sema::{Declare,Define}ImplicitDestructor()).
This can sometimes happen to a type Foo if we check the value semantics
of, say, std::vector<Foo> (which recursively checks the value semantics
of Foo without first importing Foo).
rdar://1625396541 parent 61f9f62 commit 0715522
File tree
2 files changed
+10
-0
lines changed- lib/ClangImporter
- test/Interop/Cxx/class
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8292 | 8292 | | |
8293 | 8293 | | |
8294 | 8294 | | |
| 8295 | + | |
| 8296 | + | |
| 8297 | + | |
8295 | 8298 | | |
8296 | 8299 | | |
8297 | 8300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
0 commit comments