mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-30 11:20:08 +00:00
Fix assert when return value expected.
This commit is contained in:
committed by
flysand7
parent
ad8bff4d3a
commit
47888794c8
+2
-2
@@ -4454,8 +4454,8 @@ gb_internal ExactValue convert_exact_value_for_type(ExactValue v, Type *type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gb_internal void convert_to_typed(CheckerContext *c, Operand *operand, Type *target_type) {
|
gb_internal void convert_to_typed(CheckerContext *c, Operand *operand, Type *target_type) {
|
||||||
GB_ASSERT_NOT_NULL(target_type);
|
// GB_ASSERT_NOT_NULL(target_type);
|
||||||
if (operand->mode == Addressing_Invalid ||
|
if (target_type == nullptr || operand->mode == Addressing_Invalid ||
|
||||||
operand->mode == Addressing_Type ||
|
operand->mode == Addressing_Type ||
|
||||||
is_type_typed(operand->type) ||
|
is_type_typed(operand->type) ||
|
||||||
target_type == t_invalid) {
|
target_type == t_invalid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user