From 2cb81559461c6fb0a2a50f77231768dd7c4c14df Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 3 Mar 2026 12:27:44 +0000 Subject: [PATCH] Add missing `@(require_results)` --- base/runtime/core.odin | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/runtime/core.odin b/base/runtime/core.odin index d8104b1ec..3802bd6f0 100644 --- a/base/runtime/core.odin +++ b/base/runtime/core.odin @@ -702,6 +702,7 @@ type_info_underlying :: proc "contextless" (info: ^Type_Info) -> ^Type_Info { // This is also aliased as `type_info_core` type_info_base_without_enum :: type_info_core +@(require_results) __type_info_of :: proc "contextless" (id: typeid) -> ^Type_Info #no_bounds_check { n := u64(len(type_table)) i := transmute(u64)id % n @@ -717,6 +718,7 @@ __type_info_of :: proc "contextless" (id: typeid) -> ^Type_Info #no_bounds_check when !ODIN_NO_RTTI { // typeid_base returns the base-type of a `typeid` stripping the `distinct`ness from the first level + @(require_results) typeid_base :: proc "contextless" (id: typeid) -> typeid { ti := type_info_of(id) ti = type_info_base(ti) @@ -725,6 +727,7 @@ when !ODIN_NO_RTTI { // typeid_core returns the core-type of a `typeid` stripping the `distinct`ness from the first level AND/OR // returns the backing integer type of an enum or bit_set `typeid`. // This is also aliased as `typeid_base_without_enum` + @(require_results) typeid_core :: proc "contextless" (id: typeid) -> typeid { ti := type_info_core(type_info_of(id)) return ti.id @@ -735,6 +738,7 @@ when !ODIN_NO_RTTI { // This is also aliased as `typeid_core` typeid_base_without_enum :: typeid_core + @(require_results) typeid_underlying :: proc "contextless" (id: typeid) -> typeid { ti := type_info_underlying(type_info_of(id)) return ti.id