aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-13 15:03:19 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-13 15:03:19 -0700
commit03b51a753a9cdddc362ace7266534ddf1f6d40c7 (patch)
tree2c34cf916a38ce50306a4efbc4a00792c623563c /src/analyze.cpp
parent8d510c699afe2b508482f2c106ef4b4524a5861b (diff)
downloadzig-03b51a753a9cdddc362ace7266534ddf1f6d40c7.tar.gz
zig-03b51a753a9cdddc362ace7266534ddf1f6d40c7.zip
a = b % c uses the types of b and c instead of a
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 2cb9108005..44edc95e09 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -2922,8 +2922,8 @@ static TypeTableEntry *analyze_bin_op_expr(CodeGen *g, ImportTableEntry *import,
{
AstNode **op1 = node->data.bin_op_expr.op1->parent_field;
AstNode **op2 = node->data.bin_op_expr.op2->parent_field;
- TypeTableEntry *lhs_type = analyze_expression(g, import, context, expected_type, *op1);
- TypeTableEntry *rhs_type = analyze_expression(g, import, context, expected_type, *op2);
+ TypeTableEntry *lhs_type = analyze_expression(g, import, context, nullptr, *op1);
+ TypeTableEntry *rhs_type = analyze_expression(g, import, context, nullptr, *op2);
AstNode *op_nodes[] = {*op1, *op2};
TypeTableEntry *op_types[] = {lhs_type, rhs_type};