Don't emit DW_TAG_lexical_block for VarDecls

This commit is contained in:
LemonBoy 2019-05-14 14:44:57 +02:00 committed by Andrew Kelley
parent b64cee2ec2
commit 6536b409df

View File

@ -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: