[all-commits] [llvm/llvm-project] 4f2eeb: Revert "[lldb] Use nullptr instead of 0 or NULL (N...

Nico Weber via All-commits all-commits at lists.llvm.org
Sat Jan 1 10:37:00 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f2eeb6a657abf82d13e95c7ab0d7d02fab98ed1
      https://github.com/llvm/llvm-project/commit/4f2eeb6a657abf82d13e95c7ab0d7d02fab98ed1
  Author: Nico Weber <thakis at chromium.org>
  Date:   2022-01-01 (Sat, 01 Jan 2022)

  Changed paths:
    M lldb/include/lldb/Host/HostNativeThreadBase.h
    M lldb/source/API/SystemInitializerFull.cpp
    M lldb/source/Host/common/HostNativeThreadBase.cpp
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp
    M lldb/source/Plugins/Process/Utility/RegisterInfoPOSIX_arm64.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
    M lldb/source/Symbol/Symbol.cpp

  Log Message:
  -----------
  Revert "[lldb] Use nullptr instead of 0 or NULL (NFC)"

This reverts commit 24d240558811604354a8d6080405f6bad8d15b5c.
Breaks building on Windows:

    ../../lldb/include\lldb/Host/HostNativeThreadBase.h(49,36): error:
        cannot initialize a member subobject of type 'lldb::thread_result_t'
        (aka 'unsigned int') with an rvalue of type 'std::nullptr_t'
      lldb::thread_result_t m_result = nullptr;
                                       ^~~~~~~
    1 error generated.




More information about the All-commits mailing list