Skip to content

Commit a2615ad

Browse files
authored
[mlir] Align mlir::Block (#106717)
This fixes an error from the LatticeAnchor PointerUnion with ProgramPoint in b6603e1 ``` third_party/llvm/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:172:17: error: static assertion failed due to requirement '2U <= PointerUnionUIntTraits<mlir::GenericLatticeAnchor *, mlir::ProgramPoint, mlir::Value>::NumLowBitsAvailable': PointerIntPair with integer size too large for pointer 172 | static_assert(IntBits <= PtrTraits::NumLowBitsAvailable, ```
1 parent 68f0d20 commit a2615ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/IR/Block.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ template <typename ValueRangeT>
2727
class ValueTypeRange;
2828

2929
/// `Block` represents an ordered list of `Operation`s.
30-
class Block : public IRObjectWithUseList<BlockOperand>,
31-
public llvm::ilist_node_with_parent<Block, Region> {
30+
class alignas(8) Block : public IRObjectWithUseList<BlockOperand>,
31+
public llvm::ilist_node_with_parent<Block, Region> {
3232
public:
3333
explicit Block() = default;
3434
~Block();

0 commit comments

Comments
 (0)