aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-24 12:48:31 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-08-24 13:00:28 -0400
commitbf1f91595d4d3b5911632c671ef16e44d70dc9a6 (patch)
treeeab4316a52fccbe9c4f515c76b047d687879d2f4 /std
parent6b31b178a6c6ca703211eeffa49167bfc4e0cdd4 (diff)
downloadzig-bf1f91595d4d3b5911632c671ef16e44d70dc9a6.tar.gz
zig-bf1f91595d4d3b5911632c671ef16e44d70dc9a6.zip
std.debug: remove workaround for fixed bug
Diffstat (limited to 'std')
-rw-r--r--std/debug/index.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig
index 4dbd8bf08d..3477d1b6d3 100644
--- a/std/debug/index.zig
+++ b/std/debug/index.zig
@@ -889,11 +889,10 @@ fn getLineNumberInfo(st: *ElfStackTrace, compile_unit: *const CompileUnit, targe
while (true) {
const opcode = try in_stream.readByte();
- var sub_op: u8 = undefined; // TODO move this to the correct scope and fix the compiler crash
if (opcode == DW.LNS_extended_op) {
const op_size = try readULeb128(in_stream);
if (op_size < 1) return error.InvalidDebugInfo;
- sub_op = try in_stream.readByte();
+ var sub_op = try in_stream.readByte();
switch (sub_op) {
DW.LNE_end_sequence => {
prog.end_sequence = true;