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) {
704704 return scope->di_scope;
705705 case ScopeIdBlock:
706706 case ScopeIdDefer:
707 case ScopeIdVarDecl:
708707 {
709708 assert(scope->parent);
710709 ZigLLVMDILexicalBlock *di_block = ZigLLVMCreateLexicalBlock(g->dbuilder,
......@@ -715,6 +714,7 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
715714 scope->di_scope = ZigLLVMLexicalBlockToScope(di_block);
716715 return scope->di_scope;
717716 }
717 case ScopeIdVarDecl:
718718 case ScopeIdDeferExpr:
719719 case ScopeIdLoop:
720720 case ScopeIdSuspend: