aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-08-19 04:45:05 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-08-20 12:40:34 -0700
commit4ac20f69acd446e6d9ac59f1fc4172147c05559e (patch)
tree06759e2ef15cdb58bda051fe0ca17f013ba41f6b /src/codegen
parent3e1b676ac14efd70f0e8af95bf742bf9625b28e3 (diff)
downloadzig-4ac20f69acd446e6d9ac59f1fc4172147c05559e.tar.gz
zig-4ac20f69acd446e6d9ac59f1fc4172147c05559e.zip
Revert "llvm: fix bootstrap"
This reverts commit ea72fea1a4e2bc8309c211308f49f7f2c38507be.
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/llvm/Builder.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/codegen/llvm/Builder.zig b/src/codegen/llvm/Builder.zig
index 9632beef3a..00b3826d7d 100644
--- a/src/codegen/llvm/Builder.zig
+++ b/src/codegen/llvm/Builder.zig
@@ -10092,8 +10092,8 @@ fn vectorTypeAssumeCapacity(
.data = self.addTypeExtraAssumeCapacity(data),
});
if (self.useLibLlvm()) self.llvm.types.appendAssumeCapacity(switch (kind) {
- .normal => llvm.Type.vectorType,
- .scalable => llvm.Type.scalableVectorType,
+ .normal => &llvm.Type.vectorType,
+ .scalable => &llvm.Type.scalableVectorType,
}(child.toLlvm(self), @intCast(len)));
}
return @enumFromInt(gop.index);
@@ -11274,8 +11274,8 @@ fn gepConstAssumeCapacity(
for (llvm_indices, indices) |*llvm_index, index| llvm_index.* = index.toLlvm(self);
self.llvm.constants.appendAssumeCapacity(switch (kind) {
- .normal => llvm.Type.constGEP,
- .inbounds => llvm.Type.constInBoundsGEP,
+ .normal => &llvm.Type.constGEP,
+ .inbounds => &llvm.Type.constInBoundsGEP,
}(ty.toLlvm(self), base.toLlvm(self), llvm_indices.ptr, @intCast(llvm_indices.len)));
}
}