aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-13 04:30:41 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-13 04:30:41 -0500
commit3f3630d7e349361116416dce36d2f69d7c3e318c (patch)
tree836ce54c606706f23a0a7524a3628b6e464c051c /src/analyze.cpp
parent8bb5f54b292efacc03ff8d7cc6f59ae36c24305d (diff)
downloadzig-3f3630d7e349361116416dce36d2f69d7c3e318c.tar.gz
zig-3f3630d7e349361116416dce36d2f69d7c3e318c.zip
IR: implement the rest of the builtin functions
* returnAddress * frameAddress * addWithOverflow * subWithOverflow * mulWithOverflow * shlWithOverflow * alignOf
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 03864ec85c..e0211169ae 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -876,7 +876,7 @@ static IrInstruction *analyze_const_value(CodeGen *g, Scope *scope, AstNode *nod
size_t backward_branch_count = 0;
return ir_eval_const_value(g, scope, node, type_entry,
&backward_branch_count, default_backward_branch_quota,
- nullptr, nullptr);
+ nullptr, nullptr, node);
}
TypeTableEntry *analyze_type_expr(CodeGen *g, Scope *scope, AstNode *node) {