aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Translation/RegisterToLocal.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Translation/RegisterToLocal.cs')
-rw-r--r--ARMeilleure/Translation/RegisterToLocal.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ARMeilleure/Translation/RegisterToLocal.cs b/ARMeilleure/Translation/RegisterToLocal.cs
index aa918018..088cec7e 100644
--- a/ARMeilleure/Translation/RegisterToLocal.cs
+++ b/ARMeilleure/Translation/RegisterToLocal.cs
@@ -25,9 +25,9 @@ namespace ARMeilleure.Translation
return local;
}
- foreach (BasicBlock block in cfg.Blocks)
+ for (BasicBlock block = cfg.Blocks.First; block != null; block = block.ListNext)
{
- foreach (Node node in block.Operations)
+ for (Node node = block.Operations.First; node != null; node = node.ListNext)
{
Operand dest = node.Destination;