diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-06 15:45:05 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-06 15:45:05 +0100 |
| commit | 31f779f1a4e9242ffa50ac4fc38fa8dbb10e6078 (patch) | |
| tree | 0771544198bce26b92b9077254cb960fa8550d1c | |
| parent | a3a891a7f4b0c099af49eb180dc8ce2e09527b50 (diff) | |
`intrinsics.alloca` now returns `[^]u8`
| -rw-r--r-- | core/intrinsics/intrinsics.odin | 2 | ||||
| -rw-r--r-- | src/check_builtin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/intrinsics/intrinsics.odin b/core/intrinsics/intrinsics.odin index 28a178db1..1aeee5d4c 100644 --- a/core/intrinsics/intrinsics.odin +++ b/core/intrinsics/intrinsics.odin @@ -19,7 +19,7 @@ trap :: proc() -> ! --- // Instructions -alloca :: proc(size, align: int) -> ^u8 --- +alloca :: proc(size, align: int) -> [^]u8 --- cpu_relax :: proc() --- read_cycle_counter :: proc() -> i64 --- diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index ffd622e4a..1f3928bd8 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2055,7 +2055,7 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32 error(al.expr, "Alignment parameter to '%.*s' must be constant", LIT(builtin_name)); } - operand->type = t_u8_ptr; + operand->type = alloc_type_multi_pointer(t_u8); operand->mode = Addressing_Value; break; } |