aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-07-13 05:06:27 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2023-07-19 23:39:42 -0400
commitea72fea1a4e2bc8309c211308f49f7f2c38507be (patch)
treefbf2999491f1b651ce6f389dbc4259f642422cd5 /src/codegen/llvm
parent9dd7a9eb0265f8be0fbfa4ea65b2b52f8bf29b0f (diff)
downloadzig-ea72fea1a4e2bc8309c211308f49f7f2c38507be.tar.gz
zig-ea72fea1a4e2bc8309c211308f49f7f2c38507be.zip
llvm: fix bootstrap
Diffstat (limited to 'src/codegen/llvm')
-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 07c861aec7..dd8bb6605b 100644
--- a/src/codegen/llvm/Builder.zig
+++ b/src/codegen/llvm/Builder.zig
@@ -6308,8 +6308,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);
@@ -7443,8 +7443,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)));
}
}