diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-11 00:27:10 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-11 00:27:10 -0400 |
| commit | 7411a88d5f8109ced238cf14205ae36575f02f21 (patch) | |
| tree | c61dd9c7a046e113509dc96c8a1bd42d57ce21dc /src/codegen.cpp | |
| parent | 33371ab55c01d896b91df13eafe6e5c601400a07 (diff) | |
| download | zig-7411a88d5f8109ced238cf14205ae36575f02f21.tar.gz zig-7411a88d5f8109ced238cf14205ae36575f02f21.zip | |
fix comptime function calls
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index a75ef29169..7ee299aab7 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -5709,34 +5709,6 @@ static LLVMValueRef ir_render_instruction(CodeGen *g, IrExecutable *executable, zig_unreachable(); } -static bool scope_is_elided(Scope *scope) { - for (;;) { - switch (scope->id) { - case ScopeIdDecls: - case ScopeIdCompTime: - case ScopeIdCImport: - zig_unreachable(); - case ScopeIdElide: - if (reinterpret_cast<ScopeElide *>(scope)->activated) - return true; - // fallthrough - case ScopeIdBlock: - case ScopeIdDefer: - case ScopeIdDeferExpr: - case ScopeIdVarDecl: - case ScopeIdLoop: - case ScopeIdSuspend: - case ScopeIdCoroPrelude: - case ScopeIdRuntime: - scope = scope->parent; - continue; - case ScopeIdFnDef: - return false; - } - zig_unreachable(); - } -} - static void ir_render(CodeGen *g, ZigFn *fn_entry) { assert(fn_entry); |
