diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-02 16:10:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-02 16:10:41 -0500 |
| commit | a90fa45ae146a72e2d54842eed15c4b50062eff1 (patch) | |
| tree | 7845fbd8a52ca2f7c6ddf9e157affd9d01c2191a /src/ir_print.cpp | |
| parent | fe21d84c94e16db56cf6f87040a02213615873a4 (diff) | |
| parent | 213ff939f18f147b5d9dd164d52ebdd660dab7b4 (diff) | |
| download | zig-a90fa45ae146a72e2d54842eed15c4b50062eff1.tar.gz zig-a90fa45ae146a72e2d54842eed15c4b50062eff1.zip | |
Merge pull request #4027 from ziglang/fix-float-ops
fix float ops with respect to vectors
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 06dbe0f2b5..6c7f216219 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -2005,15 +2005,8 @@ static void ir_print_add_implicit_return_type(IrPrint *irp, IrInstructionAddImpl } static void ir_print_float_op(IrPrint *irp, IrInstructionFloatOp *instruction) { - - fprintf(irp->f, "@%s(", float_op_to_name(instruction->op, false)); - if (instruction->type != nullptr) { - ir_print_other_instruction(irp, instruction->type); - } else { - fprintf(irp->f, "null"); - } - fprintf(irp->f, ","); - ir_print_other_instruction(irp, instruction->op1); + fprintf(irp->f, "@%s(", float_op_to_name(instruction->fn_id)); + ir_print_other_instruction(irp, instruction->operand); fprintf(irp->f, ")"); } |
