diff --git a/src/compiler/Generation/QBE/QBEGenerator.cs b/src/compiler/Generation/QBE/QBEGenerator.cs index 90e221e..6029fa4 100644 --- a/src/compiler/Generation/QBE/QBEGenerator.cs +++ b/src/compiler/Generation/QBE/QBEGenerator.cs @@ -458,6 +458,8 @@ public static class QBEGenerator { _variables.Clear(); _variableScopes.Clear(); + _variableIndex = 0; + _labelIndex = 0; var builder = new StringBuilder(); diff --git a/src/compiler/Generation/QBE/QBEWriter.cs b/src/compiler/Generation/QBE/QBEWriter.cs index 6c672e2..25e5eec 100644 --- a/src/compiler/Generation/QBE/QBEWriter.cs +++ b/src/compiler/Generation/QBE/QBEWriter.cs @@ -31,9 +31,6 @@ public class QBEWriter private void WriteDebugLocation(SourceSpan span) { - if (span.IsEmpty) - return; - var line = span.Start.Line; if (_currentLine != line)