Skip to content

Commit c839e04

Browse files
committed
Only use the AOT code path for the AOT profile
In the Unity repo we now use only the AOT profile for IL2CPP, so there is no need to take this AOT-friendly code path in the non_AOT profile.
1 parent f763f4a commit c839e04

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mcs/class/corlib/System.Reflection/MonoProperty.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,7 @@ public override object GetValue (object obj, object[] index)
378378
{
379379
if (index == null || index.Length == 0) {
380380
/*FIXME we should check if the number of arguments matches the expected one, otherwise the error message will be pretty criptic.*/
381-
// Once we ship the changes to make il2cpp always use the unityaot profile, we should change
382-
// this define to be UNITY_AOT. for now though, we'll take the AOT-friendly code path in all profiles.
383-
#if !FULL_AOT_RUNTIME && !UNITY
381+
#if !FULL_AOT_RUNTIME && !UNITY_AOT
384382
if (cached_getter == null) {
385383
MethodInfo method = GetGetMethod (true);
386384
if (!DeclaringType.IsValueType && !method.ContainsGenericParameters) { //FIXME find a way to build an invoke delegate for value types.

0 commit comments

Comments
 (0)