OSDN Git Service

[unittest] Explicitly specify alignment when using BumpPtrAllocator.
authorJordan Rose <jordan_rose@apple.com>
Sat, 11 Mar 2017 01:24:56 +0000 (01:24 +0000)
committerJordan Rose <jordan_rose@apple.com>
Sat, 11 Mar 2017 01:24:56 +0000 (01:24 +0000)
commit621f2c2cdd5bac6647f1c423f74f8baeea796cdc
tree7900643468bd7bac0e562e0e80807d61b46d2717
parentc32a57361b89e8c5db1ac9ee291802088fe45c4c
[unittest] Explicitly specify alignment when using BumpPtrAllocator.

r297310 began inserting red zones around allocations under ASan, which
perturbs the alignment of subsequent allocations. Deliberately specify
this in two places where it matters.

Fixes failures when these tests are run under ASan and UBSan together.
Reviewed by Duncan Exon Smith.

rdar://problem/30980047

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297540 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/Support/AllocatorTest.cpp
unittests/Support/BinaryStreamTest.cpp