@@ -138,14 +138,14 @@ void swift_slowDealloc(void *ptr, size_t bytes, size_t alignMask);
138138// / \param args The arguments to pass to the constructor for \c T.
139139// /
140140// / \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
142142// / eventually destroying the resulting object by passing it to
143143// / \c swift_cxx_deleteObject().
144144// /
145145// / This function avoids the use of the global \c operator \c new (which may be
146146// / overridden by other code in a process) in favor of calling
147147// / \c swift_slowAlloc() and constructing the new object with placement new.
148- // /
148+ // /
149149// / This function is capable of returning well-aligned memory even on platforms
150150// / that do not implement the C++17 "over-aligned new" feature.
151151template <typename T, typename ... Args>
@@ -159,7 +159,7 @@ static inline T *swift_cxx_newObject(Args &&... args) {
159159// / Destruct and deallocate an instance of type \c T.
160160// /
161161// / \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().
163163// /
164164// / This function avoids the use of the global \c operator \c delete (which may
165165// / 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) {
171171template <typename T>
172172static inline void swift_cxx_deleteObject (T *ptr) {
173173 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 );
176176 }
177177}
178178
0 commit comments