diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-01-11 23:04:08 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-01-11 23:04:08 -0500 |
| commit | 7ec783876a565662223268a70ba984e0a132b94a (patch) | |
| tree | af0c952df4dd3896721713cfa54117cb30b0a1e3 /src/ir.cpp | |
| parent | 3268276b58d8b65cb295b738d7c14174005bd84e (diff) | |
| download | zig-7ec783876a565662223268a70ba984e0a132b94a.tar.gz zig-7ec783876a565662223268a70ba984e0a132b94a.zip | |
functions which can return errors have secret stack trace param
See #651
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index f236910250..340e4fbeda 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -8230,16 +8230,6 @@ static bool ir_resolve_comptime(IrAnalyze *ira, IrInstruction *value, bool *out) return ir_resolve_bool(ira, value, out); } -static ConstExprValue *get_builtin_value(CodeGen *codegen, const char *name) { - Tld *tld = codegen->compile_var_import->decls_scope->decl_table.get(buf_create_from_str(name)); - resolve_top_level_decl(codegen, tld, false, nullptr); - assert(tld->id == TldIdVar); - TldVar *tld_var = (TldVar *)tld; - ConstExprValue *var_value = tld_var->var->value; - assert(var_value != nullptr); - return var_value; -} - static bool ir_resolve_atomic_order(IrAnalyze *ira, IrInstruction *value, AtomicOrder *out) { if (type_is_invalid(value->value.type)) return false; |
