| ... | ... | @@ -1016,6 +1016,7 @@ bool want_first_arg_sret(CodeGen *g, FnTypeId *fn_type_id) { |
| 1016 | 1016 | target_is_arm(g->zig_target) || |
| 1017 | 1017 | target_is_riscv(g->zig_target) || |
| 1018 | 1018 | target_is_wasm(g->zig_target) || |
| 1019 | target_is_sparc(g->zig_target) || |
| 1019 | 1020 | target_is_ppc(g->zig_target)) |
| 1020 | 1021 | { |
| 1021 | 1022 | X64CABIClass abi_class = type_c_abi_x86_64_class(g, fn_type_id->return_type); |
| ... | ... | @@ -1988,7 +1989,7 @@ static ZigType *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *child_sc |
| 1988 | 1989 | // behaviour when checking expected alignment with `@ptrToInt(fn_ptr)` |
| 1989 | 1990 | // or similar. This commit proposes to make `align` expressions a |
| 1990 | 1991 | // compile error when compiled to Wasm architecture. |
| 1991 | | // |
| 1992 | // |
| 1992 | 1993 | // Some references: |
| 1993 | 1994 | // [1] [Mozilla: WebAssembly Tables](https://developer.mozilla.org/en-US/docs/WebAssembly/Understanding_the_text_format#WebAssembly_tables) |
| 1994 | 1995 | // [2] [Sunfishcode's Wasm Ref Manual](https://github.com/sunfishcode/wasm-reference-manual/blob/master/WebAssembly.md#indirect-call) |
| ... | ... | @@ -9044,7 +9045,7 @@ static void resolve_llvm_types_optional(CodeGen *g, ZigType *type, ResolveStatus |
| 9044 | 9045 | 8 * child_type->abi_align, |
| 9045 | 9046 | val_offset_in_bits, |
| 9046 | 9047 | ZigLLVM_DIFlags_Zero, child_llvm_di_type); |
| 9047 | | di_element_types[maybe_null_index] = |
| 9048 | di_element_types[maybe_null_index] = |
| 9048 | 9049 | ZigLLVMCreateDebugMemberType(g->dbuilder, ZigLLVMTypeToScope(type->llvm_di_type), |
| 9049 | 9050 | "maybe", di_file, line, |
| 9050 | 9051 | 8*g->builtin_types.entry_bool->abi_size, |