[compiler-rt] r286166 - [tsan] Change nullptr to NULL in realloc-zero.cc test. Some environments don't have nullptr.

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 14:26:13 PST 2016


Author: kuba.brecka
Date: Mon Nov  7 16:26:13 2016
New Revision: 286166

URL: http://llvm.org/viewvc/llvm-project?rev=286166&view=rev
Log:
[tsan] Change nullptr to NULL in realloc-zero.cc test. Some environments don't have nullptr.


Modified:
    compiler-rt/trunk/test/tsan/Darwin/realloc-zero.cc

Modified: compiler-rt/trunk/test/tsan/Darwin/realloc-zero.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/realloc-zero.cc?rev=286166&r1=286165&r2=286166&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/realloc-zero.cc (original)
+++ compiler-rt/trunk/test/tsan/Darwin/realloc-zero.cc Mon Nov  7 16:26:13 2016
@@ -9,7 +9,7 @@
 #include <sys/mman.h>
 
 int main() {
-  void *p = realloc(nullptr, 0);
+  void *p = realloc(NULL, 0);
   if (!p) {
     abort();
   }




More information about the llvm-commits mailing list