Skip to content

Commit

Permalink
fix oldAddr in debugInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Oct 24, 2024
1 parent 1a078ee commit 32de8d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Neo.Compiler.CSharp/Optimizer/Strategies/Peephole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public static (NefFile, ContractManifest, JObject?) UseIsNull(NefFile nef, Contr
}
simplifiedInstructionsToAddress.Add(basicBlock[index], currentAddress);
currentAddress += basicBlock[index].Size;
oldAddr += basicBlock[index].Size;
}
}
return AssetBuilder.BuildOptimizedAssets(nef, manifest, debugInfo,
Expand Down Expand Up @@ -238,6 +239,7 @@ public static (NefFile, ContractManifest, JObject?) FoldNotInJmp(NefFile nef, Co
}
simplifiedInstructionsToAddress.Add(basicBlock[index], currentAddress);
currentAddress += basicBlock[index].Size;
oldAddr += basicBlock[index].Size;
}
}
return AssetBuilder.BuildOptimizedAssets(nef, manifest, debugInfo,
Expand Down

0 comments on commit 32de8d5

Please sign in to comment.