File tree 1 file changed +4
-4
lines changed
src/native/managed/cdacreader/src/Contracts 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -220,12 +220,12 @@ private TargetPointer GetClassThrowing(NonValidated.MethodTable methodTable)
220
220
221
221
private TargetPointer GetMethodDescChunkPointerMayThrow ( TargetPointer methodDescPointer , Data . MethodDesc umd )
222
222
{
223
- ulong ? methodDescSize = _target . GetTypeInfo ( DataType . MethodDesc ) . Size ;
224
- if ( ! methodDescSize . HasValue )
223
+ ulong ? methodDescChunkSize = _target . GetTypeInfo ( DataType . MethodDescChunk ) . Size ;
224
+ if ( ! methodDescChunkSize . HasValue )
225
225
{
226
- throw new InvalidOperationException ( "Target has no definite MethodDesc size" ) ;
226
+ throw new InvalidOperationException ( "Target has no definite MethodDescChunk size" ) ;
227
227
}
228
- ulong chunkAddress = ( ulong ) methodDescPointer - methodDescSize . Value - umd . ChunkIndex * MethodDescAlignment ;
228
+ ulong chunkAddress = ( ulong ) methodDescPointer - methodDescChunkSize . Value - umd . ChunkIndex * MethodDescAlignment ;
229
229
return new TargetPointer ( chunkAddress ) ;
230
230
}
231
231
You can’t perform that action at this time.
0 commit comments