File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
ICSharpCode.Decompiler/IL Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ public bool MergeStackTypes(ImmutableStack<ILVariable> newEdge)
104104 a = a . Pop ( ) ;
105105 b = b . Pop ( ) ;
106106 }
107+ output . Reverse ( ) ; // restore correct stack order
107108 this . InputStack = ImmutableStack . CreateRange ( output ) ;
108109 this . ImportStarted = false ;
109110 return true ;
@@ -492,6 +493,7 @@ void ReadBlock(ImportedBlock block, CancellationToken cancellationToken)
492493 block . ResetForReimport ( ) ;
493494 block . ImportStarted = true ;
494495 reader . Offset = block . StartILOffset ;
496+ //Debug.WriteLine($"Import block at IL_{block.StartILOffset:x4} with inputs {string.Join(", ", block.InputStack.Select(v => v.StackType.ToString()))}");
495497 currentBlock = block ;
496498 currentStack = block . InputStack ;
497499 // Read instructions until we reach the end of the block.
You can’t perform that action at this time.
0 commit comments