[compiler-rt] r237045 - [UBSan] Add missing header that defines SANITIZER_CAN_USE_PREINIT_ARRAY

Alexey Samsonov vonosmas at gmail.com
Mon May 11 14:06:49 PDT 2015


Author: samsonov
Date: Mon May 11 16:06:49 2015
New Revision: 237045

URL: http://llvm.org/viewvc/llvm-project?rev=237045&view=rev
Log:
[UBSan] Add missing header that defines SANITIZER_CAN_USE_PREINIT_ARRAY

Otherwise this compile definition was undefined, and .preinit_array
was never used on the platforms that support it.

Modified:
    compiler-rt/trunk/lib/ubsan/ubsan_init_standalone.cc

Modified: compiler-rt/trunk/lib/ubsan/ubsan_init_standalone.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_init_standalone.cc?rev=237045&r1=237044&r2=237045&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_init_standalone.cc (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_init_standalone.cc Mon May 11 16:06:49 2015
@@ -16,6 +16,7 @@
 # error "UBSan is not supported on this platform!"
 #endif
 
+#include "sanitizer_common/sanitizer_internal_defs.h"
 #include "ubsan_init.h"
 
 #if SANITIZER_CAN_USE_PREINIT_ARRAY





More information about the llvm-commits mailing list