| ... | @@ -9767,9 +9767,7 @@ fn analyzeSlice( | ... | @@ -9767,9 +9767,7 @@ fn analyzeSlice( |
| 9767 | return_elem_type, | 9767 | return_elem_type, |
| 9768 | if (end_opt == .none) slice_sentinel else null, | 9768 | if (end_opt == .none) slice_sentinel else null, |
| 9769 | 0, // TODO alignment | 9769 | 0, // TODO alignment |
| 9770 | // TODO(Snektron) address space, should be inferred from the pointer type. | 9770 | if (ptr_child.zigTypeTag() == .Pointer) ptr_child.ptrAddressSpace() else .generic, |
| 9771 | // TODO(Snektron) address space for slicing a local, should compute address space from context and architecture. | | |
| 9772 | .generic, | | |
| 9773 | 0, | 9771 | 0, |
| 9774 | 0, | 9772 | 0, |
| 9775 | !ptr_child.isConstPtr(), | 9773 | !ptr_child.isConstPtr(), |