@@ -138,14 +138,14 @@ void swift_slowDealloc(void *ptr, size_t bytes, size_t alignMask);
138
138
// / \param args The arguments to pass to the constructor for \c T.
139
139
// /
140
140
// / \returns A pointer to a new, fully constructed instance of \c T. This
141
- // / function never returns \c nullptr. The caller is responsible for
141
+ // / function never returns \c nullptr. The caller is responsible for
142
142
// / eventually destroying the resulting object by passing it to
143
143
// / \c swift_cxx_deleteObject().
144
144
// /
145
145
// / This function avoids the use of the global \c operator \c new (which may be
146
146
// / overridden by other code in a process) in favor of calling
147
147
// / \c swift_slowAlloc() and constructing the new object with placement new.
148
- // /
148
+ // /
149
149
// / This function is capable of returning well-aligned memory even on platforms
150
150
// / that do not implement the C++17 "over-aligned new" feature.
151
151
template <typename T, typename ... Args>
@@ -159,7 +159,7 @@ static inline T *swift_cxx_newObject(Args &&... args) {
159
159
// / Destruct and deallocate an instance of type \c T.
160
160
// /
161
161
// / \param ptr A pointer to an instance of type \c T previously created with a
162
- // / call to \c swift_cxx_newObject().
162
+ // / call to \c swift_cxx_newObject().
163
163
// /
164
164
// / This function avoids the use of the global \c operator \c delete (which may
165
165
// / be overridden by other code in a process) in favor of directly calling the
@@ -171,8 +171,8 @@ static inline T *swift_cxx_newObject(Args &&... args) {
171
171
template <typename T>
172
172
static inline void swift_cxx_deleteObject (T *ptr) {
173
173
if (ptr) {
174
- ptr->~T ();
175
- swift_slowDealloc (ptr, sizeof (T), alignof (T) - 1 );
174
+ ptr->~T ();
175
+ swift_slowDealloc (ptr, sizeof (T), alignof (T) - 1 );
176
176
}
177
177
}
178
178
0 commit comments