Fix the line number on instruction errors

This commit is contained in:
Ben Gruver 2013-04-15 21:03:57 -07:00
parent 87c1c0e054
commit 38d0921bbb

View File

@ -813,7 +813,7 @@ instruction[int totalMethodRegisters, int methodParameterRegisters, List<Instruc
| insn_packed_switch_directive[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_packed_switch_directive.outRegisters; }
| insn_sparse_switch_directive[$totalMethodRegisters, $methodParameterRegisters, $instructions] { $outRegisters = $insn_sparse_switch_directive.outRegisters; };
catch [Exception ex] {
reportError(new SemanticException(input, ex));
reportError(new SemanticException(input, $start, ex.getMessage()));
recover(input, null);
}