-
-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Description
The exception looks like this:
Unhandled exception. System.ArgumentException: Bad label content in ILGenerator.
at System.Reflection.Emit.ILGenerator.GetLabelPos(Label lbl)
at System.Reflection.Emit.ILGenerator.BakeByteArray()
at System.Reflection.Emit.DynamicResolver..ctor(DynamicILGenerator ilGenerator)
at System.Reflection.Emit.DynamicILGenerator.GetCallableMethod(RuntimeModule module, DynamicMethod dm)
at System.Reflection.Emit.DynamicMethod.GetMethodDescriptor()
at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType, Object target)
at FastExpressionCompiler.ExpressionCompiler.TryCompileBoundToFirstClosureParam(Type delegateType, Expression bodyExpr, IReadOnlyList`1 paramExprs, Type[] closurePlusParamTypes, Type returnType, CompilerFlags flags) in /_/src/FastExpressionCompiler/FastExpressionCompiler.cs:line 465
at FastExpressionCompiler.ExpressionCompiler.CompileFast(LambdaExpression lambdaExpr, Boolean ifFastFailedReturnNull, CompilerFlags flags) in /_/src/FastExpressionCompiler/FastExpressionCompiler.cs:line 131
at Benchmark.TestAdaptHelper.<>c.<SetupCompiler>b__4_1(LambdaExpression exp) in D:\Dev\Mapster\src\Benchmark\TestAdaptHelper.cs:line 86
at Mapster.TypeAdapterConfig.Compile(Type sourceType, Type destinationType) in D:\Dev\Mapster\src\Mapster\TypeAdapterConfig.cs:line 594
at Benchmark.TestAdaptHelper.ConfigureMapster(Customer customerInstance, MapsterCompilerType type) in D:\Dev\Mapster\src\Benchmark\TestAdaptHelper.cs:line 113
at Benchmark.Benchmarks.TestComplexTypes.SetupFec() in D:\Dev\Mapster\src\Benchmark\Benchmarks\TestComplexTypes.cs:line 70
at Benchmark.Program.Main(String[] args) in D:\Dev\Mapster\src\Benchmark\Program.cs:line 22