| ... | @@ -1887,7 +1887,7 @@ static bool iter_function_params_c_abi(CodeGen *g, ZigType *fn_type, FnWalk *fn_ | ... | @@ -1887,7 +1887,7 @@ static bool iter_function_params_c_abi(CodeGen *g, ZigType *fn_type, FnWalk *fn_ |
| 1887 | if (type_is_nonnull_ptr(g, ty)) { | 1887 | if (type_is_nonnull_ptr(g, ty)) { |
| 1888 | addLLVMArgAttr(llvm_fn, fn_walk->data.attrs.gen_i, "nonnull"); | 1888 | addLLVMArgAttr(llvm_fn, fn_walk->data.attrs.gen_i, "nonnull"); |
| 1889 | } | 1889 | } |
| 1890 | if (ptr_type->data.pointer.is_const) { | 1890 | if (ptr_type->id == ZigTypeIdPointer && ptr_type->data.pointer.is_const) { |
| 1891 | addLLVMArgAttr(llvm_fn, fn_walk->data.attrs.gen_i, "readonly"); | 1891 | addLLVMArgAttr(llvm_fn, fn_walk->data.attrs.gen_i, "readonly"); |
| 1892 | } | 1892 | } |
| 1893 | if (param_info->is_noalias) { | 1893 | if (param_info->is_noalias) { |