aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 4a0b901687..130fb4f351 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -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();
}