| 200 | //----------------------------------------------------------------------------- |
| 201 | |
| 202 | static auto* CallVecDeleteOrDtor(Expr* objectParam, QualType allocatedType, std::string_view name, uint64_t size) |
| 203 | { |
| 204 | auto dtorName = GetSpecialMemberName(allocatedType->getAsCXXRecordDecl()->getDestructor()); |
| 205 | |
| 206 | SmallVector<Expr*, 4> args{objectParam, |
| 207 | Sizeof(allocatedType), |
| 208 | Int32(size), // XXX what is the correct value? |
| 209 | CastToVoidFunPtr(dtorName)}; |
| 210 | |
| 211 | return Call(name, args); |
| 212 | } |
| 213 | //----------------------------------------------------------------------------- |
| 214 | |
| 215 | static auto* CallVecDelete(Expr* objectParam, QualType allocatedType) |
no test coverage detected