aboutsummaryrefslogtreecommitdiff
path: root/src/zig_llvm.cpp
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-09-17 11:00:38 +0100
committermlugg <mlugg@mlugg.co.uk>2024-09-17 11:00:38 +0100
commit4650e5b9fcaa74b724a51458f5cf8952f3c734de (patch)
tree3d3b16bb86bff91c115f6778102995ac1d0e40a7 /src/zig_llvm.cpp
parenta5c922179f99591d20e5b6b203c7e292692e0c28 (diff)
downloadzig-4650e5b9fcaa74b724a51458f5cf8952f3c734de.tar.gz
zig-4650e5b9fcaa74b724a51458f5cf8952f3c734de.zip
Sema: clean up cmpNumeric
There is one minor language change here, which is that comparisons of the form `comptime_inf < runtime_f32` have their results comptime-known. This is consistent with comparisons against comptime NaN for instance, which are always comptime known. A corresponding behavior test is added. This fixes a bug with int comparison elision which my previous commit somehow triggered. `Sema.compareIntsOnlyPossibleResult` is much cleaner now!
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions