support break in suspend blocks

* you can label suspend blocks
 * labeled break supports suspend blocks

See #803
This commit is contained in:
Andrew Kelley
2018-04-18 22:21:54 -04:00
parent ca4341f7ba
commit 06909ceaab
9 changed files with 136 additions and 13 deletions

View File

@@ -654,6 +654,7 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
}
case ScopeIdDeferExpr:
case ScopeIdLoop:
case ScopeIdSuspend:
case ScopeIdCompTime:
case ScopeIdCoroPrelude:
return get_di_scope(g, scope->parent);