Browse Source

Replace exception with assertion in DelegateConstruction.

pull/1030/head
Siegfried Pammer 7 years ago
parent
commit
51c62353bd
  1. 3
      ICSharpCode.Decompiler/IL/Transforms/DelegateConstruction.cs

3
ICSharpCode.Decompiler/IL/Transforms/DelegateConstruction.cs

@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection.Metadata;
using ICSharpCode.Decompiler.CSharp;
@ -320,7 +321,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -320,7 +321,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
} else if (info.value is LdLoc l) {
inst.ReplaceWith(new LdLoca(l.Variable));
} else {
throw new NotImplementedException();
Debug.Fail("LdFlda pattern not supported!");
}
}

Loading…
Cancel
Save