[all-commits] [llvm/llvm-project] 52495b: [lldb/Utility] Fix float->integral conversions in ...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Jul 7 08:00:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 52495b98eecefcbaea2e30edec6816e43653d175
      https://github.com/llvm/llvm-project/commit/52495b98eecefcbaea2e30edec6816e43653d175
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

  Changed paths:
    M lldb/source/Utility/Scalar.cpp
    M lldb/unittests/Utility/ScalarTest.cpp

  Log Message:
  -----------
  [lldb/Utility] Fix float->integral conversions in Scalar APInt getters

These functions were doing a bitcast on the float value, which is not
consistent with the other getters, which were doing a numeric conversion
(47.0 -> 47). Change these to do numeric conversions too.




More information about the All-commits mailing list