変数周りのバグ取った

This commit is contained in:
otya128 committed 2016-02-22 23:26:44 +09:00
1 parent 5f0078a8f9
commit 32af97aa8f
3 files changed
+31 -7

No files matched your search

+2
View File
@@ -23,6 +23,7 @@ class DebugInfo
}
SourceLocation getLocationByAddress(int addr)
{
if(location.length <= addr) return SourceLocation(0, 0, 0);
return location[addr];
}
}
@@ -1062,6 +1063,7 @@ class Compiler
auto start = vm.currentSlot.code.length;
this.code = vm.currentSlot.code;
globalIndex = vm.currentSlot.global.length;
functions = vm.currentSlot.functions;
compileProgram();
vm.directSlot(start, code, globalIndex + 1, global, functions, globalScope.data, globalLabel, debugInfo);
}