diff --git a/src/coreclr/tools/dotnet-pgo/Program.cs b/src/coreclr/tools/dotnet-pgo/Program.cs index b7534e900b6c8..c3a13789686ab 100644 --- a/src/coreclr/tools/dotnet-pgo/Program.cs +++ b/src/coreclr/tools/dotnet-pgo/Program.cs @@ -876,7 +876,7 @@ static bool IsUnknownTypeHandle(int handle) for (int i = 0; i < schema.Length; i++) { var elem = schema[i]; - if (elem.ILOffset == ilOffset) + if (elem.ILOffset != ilOffset) continue; if (elem.InstrumentationKind == PgoInstrumentationKind.GetLikelyClass)