authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-08-19 04:45:05-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-08-20 12:40:34-07:00
log4ac20f69acd446e6d9ac59f1fc4172147c05559e
tree06759e2ef15cdb58bda051fe0ca17f013ba41f6b
parent3e1b676ac14efd70f0e8af95bf742bf9625b28e3

Revert "llvm: fix bootstrap"

This reverts commit ea72fea1a4e2bc8309c211308f49f7f2c38507be.

1 files changed, 4 insertions(+), 4 deletions(-)

src/codegen/llvm/Builder.zig+4-4
...@@ -10092,8 +10092,8 @@ fn vectorTypeAssumeCapacity(...@@ -10092,8 +10092,8 @@ fn vectorTypeAssumeCapacity(
10092 .data = self.addTypeExtraAssumeCapacity(data),10092 .data = self.addTypeExtraAssumeCapacity(data),
10093 });10093 });
10094 if (self.useLibLlvm()) self.llvm.types.appendAssumeCapacity(switch (kind) {10094 if (self.useLibLlvm()) self.llvm.types.appendAssumeCapacity(switch (kind) {
10095 .normal => llvm.Type.vectorType,10095 .normal => &llvm.Type.vectorType,
10096 .scalable => llvm.Type.scalableVectorType,10096 .scalable => &llvm.Type.scalableVectorType,
10097 }(child.toLlvm(self), @intCast(len)));10097 }(child.toLlvm(self), @intCast(len)));
10098 }10098 }
10099 return @enumFromInt(gop.index);10099 return @enumFromInt(gop.index);
...@@ -11274,8 +11274,8 @@ fn gepConstAssumeCapacity(...@@ -11274,8 +11274,8 @@ fn gepConstAssumeCapacity(
11274 for (llvm_indices, indices) |*llvm_index, index| llvm_index.* = index.toLlvm(self);11274 for (llvm_indices, indices) |*llvm_index, index| llvm_index.* = index.toLlvm(self);
1127511275
11276 self.llvm.constants.appendAssumeCapacity(switch (kind) {11276 self.llvm.constants.appendAssumeCapacity(switch (kind) {
11277 .normal => llvm.Type.constGEP,11277 .normal => &llvm.Type.constGEP,
11278 .inbounds => llvm.Type.constInBoundsGEP,11278 .inbounds => &llvm.Type.constInBoundsGEP,
11279 }(ty.toLlvm(self), base.toLlvm(self), llvm_indices.ptr, @intCast(llvm_indices.len)));11279 }(ty.toLlvm(self), base.toLlvm(self), llvm_indices.ptr, @intCast(llvm_indices.len)));
11280 }11280 }
11281 }11281 }