introduce comptime expression

closes #221
This commit is contained in:
Andrew Kelley
2017-01-22 22:59:52 -05:00
parent 47cf8520ad
commit 201a3c121a
8 changed files with 118 additions and 136 deletions

View File

@@ -316,7 +316,6 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
case ScopeIdBlock:
case ScopeIdDefer:
case ScopeIdVarDecl:
case ScopeIdLoop:
{
assert(scope->parent);
ZigLLVMDILexicalBlock *di_block = ZigLLVMCreateLexicalBlock(g->dbuilder,
@@ -328,6 +327,8 @@ static ZigLLVMDIScope *get_di_scope(CodeGen *g, Scope *scope) {
return scope->di_scope;
}
case ScopeIdDeferExpr:
case ScopeIdLoop:
case ScopeIdCompTime:
return get_di_scope(g, scope->parent);
}
zig_unreachable();