This is an archive of the discontinued LLVM Phabricator instance.

[unittest] Explicitly specify alignment when using BumpPtrAllocator.
ClosedPublic

Authored by jordan_rose on Mar 10 2017, 5:03 PM.

Details

Summary

rL297310 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.

rdar://problem/30980047

Diff Detail

Repository
rL LLVM

Event Timeline

jordan_rose created this revision.Mar 10 2017, 5:03 PM
jordan_rose edited reviewers, added: bogner; removed: dexonsmith.
dexonsmith accepted this revision.Mar 10 2017, 5:35 PM
dexonsmith added a subscriber: dexonsmith.

LGTM.

This revision is now accepted and ready to land.Mar 10 2017, 5:35 PM
jordan_rose closed this revision.Mar 10 2017, 5:37 PM

Committed in rL297540.