Skip to content
Snippets Groups Projects
Commit 25c40e5a authored by Alexey Samsonov's avatar Alexey Samsonov
Browse files

[Sanitizer] Fix type for placement new on 32-bit Mac

llvm-svn: 158524
parent 768b41c1
No related branches found
No related tags found
No related merge requests found
...@@ -18,14 +18,16 @@ ...@@ -18,14 +18,16 @@
#include "sanitizer_internal_defs.h" #include "sanitizer_internal_defs.h"
#if __WORDSIZE == 64 namespace __sanitizer {
inline void *operator new(__sanitizer::uptr sz, void *p) { #if (__WORDSIZE == 64) || defined(__APPLE__)
return p; typedef __sanitizer::uptr operator_new_ptr_type;
}
#else #else
inline void *operator new(__sanitizer::u32 sz, void *p) { typedef __sanitizer::u32 operator_new_ptr_type;
#endif
} // namespace __sanitizer
inline void *operator new(operator_new_ptr_type sz, void *p) {
return p; return p;
} }
#endif
#endif // SANITIZER_PLACEMENT_NEW_H #endif // SANITIZER_PLACEMENT_NEW_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment