[UBSan] Add missing header that defines SANITIZER_CAN_USE_PREINIT_ARRAY
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 11 May 2015 21:06:49 +0000 (21:06 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 11 May 2015 21:06:49 +0000 (21:06 +0000)
Otherwise this compile definition was undefined, and .preinit_array
was never used on the platforms that support it.

llvm-svn: 237045

compiler-rt/lib/ubsan/ubsan_init_standalone.cc

index 47899a5..ff1a20e 100644 (file)
@@ -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