From b9f511954a70a9dd91cb1d21ff0d4aa1a4da8ebe Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 26 Sep 2020 23:12:04 +0100 Subject: [PATCH] Make runtime.slice_handle_error explicitly diverging --- core/runtime/error_checks.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/runtime/error_checks.odin b/core/runtime/error_checks.odin index 82d6b7159..d40ac45ca 100644 --- a/core/runtime/error_checks.odin +++ b/core/runtime/error_checks.odin @@ -35,7 +35,7 @@ bounds_check_error :: proc "contextless" (file: string, line, column: int, index handle_error(file, line, column, index, count); } -slice_handle_error :: proc "contextless" (file: string, line, column: int, lo, hi: int, len: int) { +slice_handle_error :: proc "contextless" (file: string, line, column: int, lo, hi: int, len: int) -> ! { context = default_context(); fd := os_stderr(); print_caller_location(fd, Source_Code_Location{file, line, column, "", 0});