Skip to content

Commit

Permalink
Mask the IntervalMap alignment assertion on ix86 mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Sep 22, 2020
1 parent 23a0442 commit 1c6c71f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/include/llvm/ADT/IntervalMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -1040,8 +1040,11 @@ class IntervalMap {

public:
explicit IntervalMap(Allocator &a) : height(0), rootSize(0), allocator(a) {
#if !(defined(__MINGW32__) && defined(_M_IX86))
// FIXME: i686-mingw is failing this assertion somehow...
assert((uintptr_t(data.buffer) & (alignof(RootLeaf) - 1)) == 0 &&
"Insufficient alignment");
#endif
new(&rootLeaf()) RootLeaf();
}

Expand Down

0 comments on commit 1c6c71f

Please sign in to comment.