Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 048b6b5

Browse files
authored
Merge pull request #20228 from AndyAyersMS/Port20203toRelease2.2
Fix test for GT_INDEX_ADDR to forcibly compile with minopts
2 parents ad096c8 + dd99f66 commit 048b6b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/src/JIT/Regression/JitBlue/GitHub_20040/GitHub_20040.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6+
using System.Runtime.CompilerServices;
67

78
// GitHub 20040: operand ordering bug with GT_INDEX_ADDR
89
// Requires minopts/tier0 to repro
@@ -48,6 +49,7 @@ byte[] CheckLength(out int offset)
4849
return currentBuffer;
4950
}
5051

52+
[MethodImpl(MethodImplOptions.NoOptimization | MethodImplOptions.NoInlining)]
5153
public byte ReadByte()
5254
{
5355
int offset;

0 commit comments

Comments
 (0)