diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-08-07 23:50:40 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-08-08 21:32:50 -0400 |
| commit | 2499d8fb73b943640cbc7d0484377fffbee403c6 (patch) | |
| tree | 6cc4ea7466da93418239047de40de236490a7562 /src/codegen/llvm.zig | |
| parent | a66cd54f94cf675a67f6de594e3d59e7ca14b92f (diff) | |
| download | zig-2499d8fb73b943640cbc7d0484377fffbee403c6.tar.gz zig-2499d8fb73b943640cbc7d0484377fffbee403c6.zip | |
Builder: fix enough bugs to pass the behavior tests
without using any information from the LLVM API
Diffstat (limited to 'src/codegen/llvm.zig')
| -rw-r--r-- | src/codegen/llvm.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig index 156b3ac36e..c59f2de882 100644 --- a/src/codegen/llvm.zig +++ b/src/codegen/llvm.zig @@ -6243,7 +6243,7 @@ pub const FuncGen = struct { if (elem_ptr.ptrInfo(mod).flags.vector_index != .none) return base_ptr; const llvm_elem_ty = try o.lowerPtrElemTy(elem_ty); - return try self.wip.gep(.inbounds, llvm_elem_ty, base_ptr, if (ptr_ty.isSinglePointer(mod)) + return self.wip.gep(.inbounds, llvm_elem_ty, base_ptr, if (ptr_ty.isSinglePointer(mod)) // If this is a single-item pointer to an array, we need another index in the GEP. &.{ try o.builder.intValue(try o.lowerType(Type.usize), 0), rhs } else @@ -10532,7 +10532,7 @@ pub const FuncGen = struct { else => unreachable, }; - return try fg.wip.callAsm( + return fg.wip.callAsm( .none, try o.builder.fnType(llvm_usize, &.{ llvm_usize, llvm_usize }, .normal), .{ .sideeffect = true }, |
