1
0

変数周りのバグ取った

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

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);
}