[all-commits] [llvm/llvm-project] 9690b3: [LLDB] Fix operators <= and >= returning a wrong r...

Ilia Kuklin via All-commits all-commits at lists.llvm.org
Wed Sep 18 05:50:32 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9690b30ba9acc3deb1068deb37f3b507826b27fe
      https://github.com/llvm/llvm-project/commit/9690b30ba9acc3deb1068deb37f3b507826b27fe
  Author: Ilia Kuklin <ikuklin at accesssoftek.com>
  Date:   2024-09-18 (Wed, 18 Sep 2024)

  Changed paths:
    M lldb/include/lldb/Utility/Scalar.h
    M lldb/source/Utility/Scalar.cpp
    A lldb/test/API/lang/cpp/fpnan/Makefile
    A lldb/test/API/lang/cpp/fpnan/TestFPNaN.py
    A lldb/test/API/lang/cpp/fpnan/main.cpp

  Log Message:
  -----------
  [LLDB] Fix operators <= and >= returning a wrong result when comparing to a floating point NaN (#108060)

Implement operators `<=` and `>=` to explicitly check the comparison
results to be `cmpLessThan` or `cmpEqual` instead of negating the result
of `operators<`.

Fixes #85947



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list