authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2019-05-14 14:44:57+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-05-14 14:34:49-04:00
log6536b409df053165ed704148de6ecf5b72e27282
treeab9328634fa0ac2b21240621584eacc5e0d0dbc8
parentb64cee2ec2cdfd4c49208b3b32bb925233a73e08

Don't emit DW_TAG_lexical_block for VarDecls


1 files changed, 1 insertions(+), 1 deletions(-)

src/codegen.cpp+1-1
...@@ -704,7 +704,6 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {...@@ -704,7 +704,6 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
704 return scope->di_scope;704 return scope->di_scope;
705 case ScopeIdBlock:705 case ScopeIdBlock:
706 case ScopeIdDefer:706 case ScopeIdDefer:
707 case ScopeIdVarDecl:
708 {707 {
709 assert(scope->parent);708 assert(scope->parent);
710 ZigLLVMDILexicalBlock *di_block = ZigLLVMCreateLexicalBlock(g->dbuilder,709 ZigLLVMDILexicalBlock *di_block = ZigLLVMCreateLexicalBlock(g->dbuilder,
...@@ -715,6 +714,7 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {...@@ -715,6 +714,7 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
715 scope->di_scope = ZigLLVMLexicalBlockToScope(di_block);714 scope->di_scope = ZigLLVMLexicalBlockToScope(di_block);
716 return scope->di_scope;715 return scope->di_scope;
717 }716 }
717 case ScopeIdVarDecl:
718 case ScopeIdDeferExpr:718 case ScopeIdDeferExpr:
719 case ScopeIdLoop:719 case ScopeIdLoop:
720 case ScopeIdSuspend:720 case ScopeIdSuspend: