diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-05-11 21:06:49 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-05-11 21:06:49 +0000 |
commit | 26e42a768446b61035f1540d132374c6bef1e8a2 (patch) | |
tree | 9143fdcc3ace040594fc5ff9d38fb0cf7aad0287 /lib/ubsan/ubsan_init_standalone.cc | |
parent | 3e7074764e7c6c913ff39a59f1e54302d3ea8aba (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@237045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_init_standalone.cc')
-rw-r--r-- | lib/ubsan/ubsan_init_standalone.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ubsan/ubsan_init_standalone.cc b/lib/ubsan/ubsan_init_standalone.cc index 47899a553..ff1a20efe 100644 --- a/lib/ubsan/ubsan_init_standalone.cc +++ b/lib/ubsan/ubsan_init_standalone.cc @@ -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 |