[PATCH] D44070: sanitizer common, FreeBSD build fix

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 3 10:48:54 PST 2018


devnexen created this revision.
devnexen added reviewers: krytarowski, vitalybuka.
devnexen created this object with visibility "All Users".
Herald added subscribers: Sanitizers, llvm-commits.

Defines the right underlying type for new operator


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44070

Files:
  sanitizer_internal_defs.h


Index: sanitizer_internal_defs.h
===================================================================
--- sanitizer_internal_defs.h
+++ sanitizer_internal_defs.h
@@ -175,6 +175,8 @@
 # if SANITIZER_OPENBSD || defined(__s390__) && !defined(__s390x__)
 // Special case: 31-bit s390 has unsigned long as size_t.
 typedef unsigned long operator_new_size_type;
+# elif SANITIZER_FREEBSD
+typedef unsigned int operator_new_size_type;
 # else
 typedef u32 operator_new_size_type;
 # endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44070.136925.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180303/2ca5b33b/attachment.bin>


More information about the llvm-commits mailing list