Skip to content

Commit

Permalink
[clang] [Headers] Use the corresponding _aligned_free or __mingw_alig…
Browse files Browse the repository at this point in the history
…ned_free in _mm_free

Differential Revision: https://reviews.llvm.org/D92570
  • Loading branch information
mstorsjo committed Dec 4, 2020
1 parent 061cebb commit c17fdca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clang/lib/Headers/mm_malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ _mm_malloc(size_t __size, size_t __align)
static __inline__ void __attribute__((__always_inline__, __nodebug__))
_mm_free(void *__p)
{
#if defined(__MINGW32__)
__mingw_aligned_free(__p);
#elif defined(_WIN32)
_aligned_free(__p);
#else
free(__p);
#endif
}
#endif

Expand Down

0 comments on commit c17fdca

Please sign in to comment.