diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-05-07 10:05:59 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-05-07 10:05:59 -0700 |
| commit | 8c79438f6b76f1ad4b4941cdb46ae1e7aa12ce14 (patch) | |
| tree | 266e5cc959092bfc6e0567916f37cd34fbd0f712 /src/codegen.cpp | |
| parent | d5d5fd928c79df6e4060c7ad84068fcee28c2391 (diff) | |
| download | zig-8c79438f6b76f1ad4b4941cdb46ae1e7aa12ce14.tar.gz zig-8c79438f6b76f1ad4b4941cdb46ae1e7aa12ce14.zip | |
better array concatenation semantics
closes #87
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index 8ecdd36358..6c73eff14a 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -1665,7 +1665,7 @@ static LLVMValueRef gen_arithmetic_bin_op(CodeGen *g, AstNode *source_node, case BinOpTypeAssignBoolAnd: case BinOpTypeAssignBoolOr: case BinOpTypeUnwrapMaybe: - case BinOpTypeStrCat: + case BinOpTypeArrayCat: case BinOpTypeArrayMult: zig_unreachable(); } @@ -1972,7 +1972,7 @@ static LLVMValueRef gen_unwrap_maybe_expr(CodeGen *g, AstNode *node) { static LLVMValueRef gen_bin_op_expr(CodeGen *g, AstNode *node) { switch (node->data.bin_op_expr.bin_op) { case BinOpTypeInvalid: - case BinOpTypeStrCat: + case BinOpTypeArrayCat: case BinOpTypeArrayMult: zig_unreachable(); case BinOpTypeAssign: |
