Skip to content

Commit 495b15c

Browse files
committed
[DataLayout] Remove i1 alignment entry
I don't think we need to explicitly specify i1 alignment, as this is going to fall back to i8 alignment. This may change behavior if a data layout explicitly sets i8 alignment without also setting i1 layout, but I'd expect this to be a bug fix in that case.
1 parent 38b376f commit 495b15c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/IR/DataLayout.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ const char *DataLayout::getManglingComponent(const Triple &T) {
187187
// Default primitive type specifications.
188188
// NOTE: These arrays must be sorted by type bit width.
189189
constexpr DataLayout::PrimitiveSpec DefaultIntSpecs[] = {
190-
{1, Align::Constant<1>(), Align::Constant<1>()}, // i1:8:8
191190
{8, Align::Constant<1>(), Align::Constant<1>()}, // i8:8:8
192191
{16, Align::Constant<2>(), Align::Constant<2>()}, // i16:16:16
193192
{32, Align::Constant<4>(), Align::Constant<4>()}, // i32:32:32

0 commit comments

Comments
 (0)