Index: include/llvm/ADT/IntervalMap.h =================================================================== --- include/llvm/ADT/IntervalMap.h +++ include/llvm/ADT/IntervalMap.h @@ -1040,8 +1040,13 @@ public: explicit IntervalMap(Allocator &a) : height(0), rootSize(0), allocator(a) { +#if defined(_WIN32) && !defined(_WIN64) + assert((uintptr_t(data.buffer) & (alignof(RootLeaf) - 1) & 3) == 0 && + "Insufficient alignment"); +#else assert((uintptr_t(data.buffer) & (alignof(RootLeaf) - 1)) == 0 && "Insufficient alignment"); +#endif new(&rootLeaf()) RootLeaf(); }