mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
IR: error for returning from defer expression
also fix peer type resolution for pure error mixed with error union
This commit is contained in:
1 parent
dc26dec8e0
commit
a9acc8cb45
5 files changed
+57
-5
No files matched your search
@@ -325,6 +325,8 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
|
||||
scope->di_scope = ZigLLVMLexicalBlockToScope(di_block);
|
||||
return scope->di_scope;
|
||||
}
|
||||
case ScopeIdDeferExpr:
|
||||
return get_di_scope(g, scope->parent);
|
||||
}
|
||||
zig_unreachable();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user