Skip to content

Commit ed496c9

Browse files
committed
Fix removal of AggressiveInlining.
1 parent ecf85c4 commit ed496c9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
Binary file not shown.

src/BenchmarkDotNet.Weaver/src/WeaveAssemblyTask.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public override bool Execute()
6262
{
6363
var oldImpl = method.ImplAttributes;
6464
// Remove AggressiveInlining and add NoInlining.
65-
const MethodImplAttributes AggressiveInlining = (MethodImplAttributes) 512;
66-
method.ImplAttributes = (oldImpl & ~AggressiveInlining) | MethodImplAttributes.NoInlining;
65+
method.ImplAttributes = (oldImpl & ~MethodImplAttributes.AggressiveInlining) | MethodImplAttributes.NoInlining;
6766
benchmarkMethodsImplAdjusted |= (oldImpl & MethodImplAttributes.NoInlining) == 0;
6867
}
6968
}

0 commit comments

Comments
 (0)