Skip to content

Commit

Permalink
Update WasmBase::IsSupported not to use backing field (#79884)
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Dec 22, 2022
1 parent 84b839e commit 83d3daa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace System.Runtime.Intrinsics.Wasm
[Intrinsic]
internal abstract class WasmBase
{
public static bool IsSupported { get; }
public static bool IsSupported { get => IsSupported; }

/// <summary>
/// i32.clz
Expand Down
3 changes: 2 additions & 1 deletion src/mono/mono/mini/interp/transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -2613,7 +2613,8 @@ interp_handle_intrinsics (TransformData *td, MonoMethod *target_method, MonoClas
} else if (in_corlib &&
(!strncmp ("System.Runtime.Intrinsics.Arm", klass_name_space, 29) ||
!strncmp ("System.Runtime.Intrinsics.PackedSimd", klass_name_space, 36) ||
!strncmp ("System.Runtime.Intrinsics.X86", klass_name_space, 29)) &&
!strncmp ("System.Runtime.Intrinsics.X86", klass_name_space, 29) ||
!strncmp ("System.Runtime.Intrinsics.Wasm", klass_name_space, 30)) &&
!strcmp (tm, "get_IsSupported")) {
*op = MINT_LDC_I4_0;
} else if (in_corlib &&
Expand Down

0 comments on commit 83d3daa

Please sign in to comment.