apply autocasting below the ir-tree generation level of lens calls, so that we don't accidentally strip away lenses

This commit is contained in:
Ryan Fleury
2025-04-30 17:04:10 -07:00
parent 58a3a364cf
commit b0dd7700d7
+1 -1
View File
@@ -2173,7 +2173,7 @@ e_push_irtree_and_type_from_expr(Arena *arena, E_IRTreeAndType *root_parent, B32
//- rjf: if the evaluated type has a virtual table pointer, then we must
// pre-emptively evaluate this ir tree, and determine a more resolved type.
{
E_TypeKey type_key = e_type_key_unwrap(result.type_key, E_TypeUnwrapFlag_AllDecorative);
E_TypeKey type_key = e_type_key_unwrap(result.type_key, E_TypeUnwrapFlag_Modifiers);
if(e_type_kind_is_pointer_or_ref(e_type_kind_from_key(type_key)))
{
E_TypeKey ptee_key = e_type_key_unwrap(result.type_key, E_TypeUnwrapFlag_All);