aboutsummaryrefslogtreecommitdiff
path: root/std/debug/index.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-06-20 17:16:27 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-06-20 17:16:27 -0400
commite891f9cd9dc52b4bc63ae63115822fbf5e724348 (patch)
tree04db0f7f5ae715cab83eaa496861be16161998cc /std/debug/index.zig
parent6bd861006377ba192d5bd108a0de1e94f32c2454 (diff)
downloadzig-e891f9cd9dc52b4bc63ae63115822fbf5e724348.tar.gz
zig-e891f9cd9dc52b4bc63ae63115822fbf5e724348.zip
zig fmt
Diffstat (limited to 'std/debug/index.zig')
-rw-r--r--std/debug/index.zig6
1 files changed, 2 insertions, 4 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig
index 19cee3c65d..57b2dfc300 100644
--- a/std/debug/index.zig
+++ b/std/debug/index.zig
@@ -279,9 +279,7 @@ pub fn openSelfDebugInfo(allocator: *mem.Allocator) !*ElfStackTrace {
var exe_file = try os.openSelfExe();
defer exe_file.close();
- const st = try allocator.create(ElfStackTrace{
- .symbol_table = try macho.loadSymbols(allocator, &io.FileInStream.init(&exe_file))
- });
+ const st = try allocator.create(ElfStackTrace{ .symbol_table = try macho.loadSymbols(allocator, &io.FileInStream.init(&exe_file)) });
errdefer allocator.destroy(st);
return st;
},
@@ -972,7 +970,7 @@ fn scanAllCompileUnits(st: *ElfStackTrace) !void {
try st.self_exe_file.seekTo(compile_unit_pos);
- const compile_unit_die = try st.allocator().create( try parseDie(st, abbrev_table, is_64) );
+ const compile_unit_die = try st.allocator().create(try parseDie(st, abbrev_table, is_64));
if (compile_unit_die.tag_id != DW.TAG_compile_unit) return error.InvalidDebugInfo;