diff --git a/lib/std/dwarf.zig b/lib/std/dwarf.zig index 12ec357849d9d58a8a1f4d8ba03b696445476aaf..93d744ca5f1fe2c6605007aa08c3faf373b4ba47 100644 --- a/lib/std/dwarf.zig +++ b/lib/std/dwarf.zig @@ -822,7 +822,7 @@ pub const DwarfInfo = struct { // in the list itself. // If no starting value is specified use zero. var base_address = compile_unit.die.getAttrAddr(AT.low_pc) catch |err| switch (err) { - error.MissingDebugInfo => 0, + error.MissingDebugInfo => @as(u64, 0), // TODO https://github.com/ziglang/zig/issues/11135 else => return err, }; diff --git a/src/AstGen.zig b/src/AstGen.zig index 97ca9f0a129eb22d484bc8db48a68178dfb704d6..f54af8d3fb8c98783300293bf1642a5a26c451f5 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -1035,9 +1035,8 @@ fn nosuspendExpr( }); } gz.nosuspend_node = node; - const result = try expr(gz, scope, rl, body_node); - gz.nosuspend_node = 0; - return rvalue(gz, rl, result, node); + defer gz.nosuspend_node = 0; + return expr(gz, scope, rl, body_node); } fn suspendExpr(