Skip to content

Commit

Permalink
fixing #310
Browse files Browse the repository at this point in the history
  • Loading branch information
maximv committed Aug 27, 2020
1 parent fa97ab1 commit 3fa8fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DryIoc/FastExpressionCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4655,7 +4655,7 @@ public virtual LocalBuilder DeclareLocal(Type localType, bool pinned)
static ILGeneratorHacks()
{
// the default allocatee method
_getNextLocalVarIndex = (il, type) => il.DeclareLocal(type).LocalIndex;
_getNextLocalVarIndex = (i, t) => i.DeclareLocal(t).LocalIndex;

// now let's try to acquire the more efficient less allocating method
var ilGenTypeInfo = typeof(ILGenerator).GetTypeInfo();
Expand Down

0 comments on commit 3fa8fc2

Please sign in to comment.