From 5c61bfbe8fb69bc0358194cf0f87e26ae4e0b2c8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 21 Aug 2022 21:38:24 -0700 Subject: [PATCH] fix stage2 compiler error --- src/main.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 34987eab5..748d4f85d 100644 --- a/src/main.zig +++ b/src/main.zig @@ -32,7 +32,10 @@ pub fn main() !void { }; // If we're tracing, then wrap memory so we can trace allocations - const alloc = if (!tracy.enabled) gpa else tracy.allocator(gpa, null).allocator(); + const alloc = if (!tracy.enabled) gpa else alloc: { + var tracy_alloc = tracy.allocator(gpa, null); + break :alloc tracy_alloc.allocator(); + }; // Parse the config from the CLI args var config = config: {