Skip to content

Commit

Permalink
#1806: Use NormalizeTypeVisitor.TypeErasure.EquivalentTypes in DebugI…
Browse files Browse the repository at this point in the history
…nfoGenerator.HandleMethodBody to fix false positives in assertion.
  • Loading branch information
siegfriedpammer committed Aug 5, 2023
1 parent 25ed4b1 commit 4893c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ICSharpCode.Decompiler/DebugInfo/DebugInfoGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void HandleMethodBody(ILFunction function, MethodBodyBlock methodBody)
if (v.Index != null && v.Kind.IsLocal())
{
#if DEBUG
Debug.Assert(v.Index < types.Length && v.Type.Equals(types[v.Index.Value]));
Debug.Assert(v.Index < types.Length && NormalizeTypeVisitor.TypeErasure.EquivalentTypes(v.Type, types[v.Index.Value]));
#endif
localVariables.Add(v);
}
Expand Down

0 comments on commit 4893c58

Please sign in to comment.