Revert "llvm: fix bootstrap"

This reverts commit ea72fea1a4e2bc8309c211308f49f7f2c38507be.
This commit is contained in:
Jacob Young 2023-08-19 04:45:05 -04:00 committed by Andrew Kelley
parent 3e1b676ac1
commit 4ac20f69ac

View File

@ -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)));
}
}