Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

IL2CPP generated different code for function with enum argument #2

@xiaobin83

Description

@xiaobin83

Check generated C++ code of ToBePatched.FuncWithEnum. There is no Box() on enum argument, which introduce a compilation error.

   int32_t L_3 = ___a0; // __a0 is enum but passed as int32_t
   NullCheck(L_2);
   IL2CPP_ARRAY_BOUNDS_CHECK(L_2, ((int32_t)0));
   ArrayElementTypeCheck (L_2, L_3);  // L_3 is not boxed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions