mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Don't emit DW_TAG_lexical_block for VarDecls
This commit is contained in:
parent
b64cee2ec2
commit
6536b409df
@ -704,7 +704,6 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
|
||||
return scope->di_scope;
|
||||
case ScopeIdBlock:
|
||||
case ScopeIdDefer:
|
||||
case ScopeIdVarDecl:
|
||||
{
|
||||
assert(scope->parent);
|
||||
ZigLLVMDILexicalBlock *di_block = ZigLLVMCreateLexicalBlock(g->dbuilder,
|
||||
@ -715,6 +714,7 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
|
||||
scope->di_scope = ZigLLVMLexicalBlockToScope(di_block);
|
||||
return scope->di_scope;
|
||||
}
|
||||
case ScopeIdVarDecl:
|
||||
case ScopeIdDeferExpr:
|
||||
case ScopeIdLoop:
|
||||
case ScopeIdSuspend:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user