diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-07-09 23:24:21 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-07-09 23:24:21 -0700 |
| commit | 02619edf413cd3b8b01a6a3514ecd257d7c08b6e (patch) | |
| tree | b27dffca9c3c26ef8cb33776dfbdf1941e7f6e55 /src/ir.cpp | |
| parent | 2e1bdd0d14f490a80bbed3ee0e0479a908715d33 (diff) | |
| download | zig-02619edf413cd3b8b01a6a3514ecd257d7c08b6e.tar.gz zig-02619edf413cd3b8b01a6a3514ecd257d7c08b6e.zip | |
Revert "use correct cast function when doing `@floatCast` at comptime"
This reverts commit 2e1bdd0d14f490a80bbed3ee0e0479a908715d33.
Test failures
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 81b7f14f84..a45455ad39 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -26718,7 +26718,7 @@ static IrInstGen *ir_analyze_instruction_float_cast(IrAnalyze *ira, IrInstSrcFlo } if (instr_is_comptime(target) || dest_type->id == ZigTypeIdComptimeFloat) { - return ir_analyze_widen_or_shorten(ira, &instruction->target->base, target, dest_type); + return ir_implicit_cast2(ira, &instruction->target->base, target, dest_type); } if (target->value->type->id != ZigTypeIdFloat) { |
