[all-commits] [llvm/llvm-project] 2a3ef3: [lldb][NFC] Don't hide a bool in LibCxxOptional's ...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Mon Feb 10 04:03:30 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a3ef377ec00e7c7d3f4c47614ab6baee727cd82
      https://github.com/llvm/llvm-project/commit/2a3ef377ec00e7c7d3f4c47614ab6baee727cd82
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2020-02-10 (Mon, 10 Feb 2020)

  Changed paths:
    M lldb/source/Plugins/Language/CPlusPlus/LibCxxOptional.cpp

  Log Message:
  -----------
  [lldb][NFC] Don't hide a bool in LibCxxOptional's OptionalFrontend::m_size

m_size can only be 1 or 0 and indicates if the optional has a value. Calling
it 'm_size', giving it a size_t data type and then also comparing indices against
'size' is very confusing. Let's just make this a bool.




More information about the All-commits mailing list