[all-commits] [llvm/llvm-project] 040eca: [lldb/Utility] Remove m_ieee_quad from Scalar

Pavel Labath via All-commits all-commits at lists.llvm.org
Wed Jun 10 06:15:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 040eca77170bea12ca0614cdb256b957c3b93810
      https://github.com/llvm/llvm-project/commit/040eca77170bea12ca0614cdb256b957c3b93810
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-06-10 (Wed, 10 Jun 2020)

  Changed paths:
    M lldb/include/lldb/Utility/Scalar.h
    M lldb/source/Utility/Scalar.cpp

  Log Message:
  -----------
  [lldb/Utility] Remove m_ieee_quad from Scalar

This field is unused (the only way to change its value is via a
constructor which is never called), and as far as I can tell it has been
unused since it was introduced in D12100. It also has some soundness
issues -- e.g.  operator= does not reinitialize it, but uses the old
value from the overwritten object.

It sounds like this class should be able to support different floating
point semantics, but if that is needed, it would be better to start
afresh -- probably by passing in an APFloat::fltSemantics object instead
of a bool flag.




More information about the All-commits mailing list