mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
llvm: fix bootstrap
This commit is contained in:
parent
9dd7a9eb02
commit
ea72fea1a4
@ -6308,8 +6308,8 @@ fn vectorTypeAssumeCapacity(
|
|||||||
.data = self.addTypeExtraAssumeCapacity(data),
|
.data = self.addTypeExtraAssumeCapacity(data),
|
||||||
});
|
});
|
||||||
if (self.useLibLlvm()) self.llvm.types.appendAssumeCapacity(switch (kind) {
|
if (self.useLibLlvm()) self.llvm.types.appendAssumeCapacity(switch (kind) {
|
||||||
.normal => &llvm.Type.vectorType,
|
.normal => llvm.Type.vectorType,
|
||||||
.scalable => &llvm.Type.scalableVectorType,
|
.scalable => llvm.Type.scalableVectorType,
|
||||||
}(child.toLlvm(self), @intCast(len)));
|
}(child.toLlvm(self), @intCast(len)));
|
||||||
}
|
}
|
||||||
return @enumFromInt(gop.index);
|
return @enumFromInt(gop.index);
|
||||||
@ -7443,8 +7443,8 @@ fn gepConstAssumeCapacity(
|
|||||||
for (llvm_indices, indices) |*llvm_index, index| llvm_index.* = index.toLlvm(self);
|
for (llvm_indices, indices) |*llvm_index, index| llvm_index.* = index.toLlvm(self);
|
||||||
|
|
||||||
self.llvm.constants.appendAssumeCapacity(switch (kind) {
|
self.llvm.constants.appendAssumeCapacity(switch (kind) {
|
||||||
.normal => &llvm.Type.constGEP,
|
.normal => llvm.Type.constGEP,
|
||||||
.inbounds => &llvm.Type.constInBoundsGEP,
|
.inbounds => llvm.Type.constInBoundsGEP,
|
||||||
}(ty.toLlvm(self), base.toLlvm(self), llvm_indices.ptr, @intCast(llvm_indices.len)));
|
}(ty.toLlvm(self), base.toLlvm(self), llvm_indices.ptr, @intCast(llvm_indices.len)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user