Skip to content

Commit

Permalink
Update InstrumentationWeaver.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Sep 21, 2024
1 parent 63d7e80 commit c1a6eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Draco.Coverage/InstrumentationWeaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ private void WeaveType(TypeDefinition type)

private void WeaveMethod(MethodDefinition method)
{
if (method.IsAbstract || method.IsPInvokeImpl || method.IsRuntime || !method.HasBody) return;
if (method.IsAbstract || method.IsPInvokeImpl || method.IsRuntime || method.IsRuntimeSpecialName || !method.HasBody) return;
if (this.SkipMethod(method)) return;

method.Body.SimplifyMacros();
Expand Down

0 comments on commit c1a6eab

Please sign in to comment.