Skip to content

Commit

Permalink
CallInstruction creation should respect IsDynamicCodeSupported
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpovazan committed Jun 9, 2023
1 parent 3181f9c commit caea6ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal abstract partial class CallInstruction : Instruction
/// </summary>
public abstract int ArgumentCount { get; }

private static bool CanCreateArbitraryDelegates => true;
private static bool CanCreateArbitraryDelegates => RuntimeFeature.IsDynamicCodeSupported;

#region Construction

Expand Down

0 comments on commit caea6ca

Please sign in to comment.