Skip to content

Commit

Permalink
fix alternate compile by initialising hole
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed Aug 19, 2020
1 parent c7299a0 commit dc20bad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ pub const Compiler = struct {
// TODO: Doees this need to be dynamically allocated?
var last_hole = try c.allocator.create(Hole);
defer c.allocator.destroy(last_hole);
last_hole.* = .None;

// This compiles one branch of the split at a time.
for (subexprs.items[0 .. subexprs.items.len - 1]) |subexpr| {
Expand Down

0 comments on commit dc20bad

Please sign in to comment.