[all-commits] [llvm/llvm-project] 8e757c: Fix conversion error to Expected

RoboTux via All-commits all-commits at lists.llvm.org
Wed May 25 12:51:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e757c6b500dc18f0cc5a7c027682ac2aacf8eb0
      https://github.com/llvm/llvm-project/commit/8e757c6b500dc18f0cc5a7c027682ac2aacf8eb0
  Author: Thomas Preud'homme <thomasp at graphcore.ai>
  Date:   2022-05-25 (Wed, 25 May 2022)

  Changed paths:
    M lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
    M lldb/source/Plugins/Process/Linux/IntelPTSingleBufferTrace.cpp

  Log Message:
  -----------
  Fix conversion error to Expected

On Ubuntu 18.04 with GCC 7.5 Intel trace code fails to build due to
failure to convert from
lldb_private::process_linux::IntelPTPerThreadProcessTraceUP to
Expected<lldb_private::process_linux::IntelPTPerThreadProcessTraceUP>.
This commit explicitely marks those unique_ptr values as being moved
which fixes the conversion error.

Reviewed By: wallace

Differential Revision: https://reviews.llvm.org/D126402




More information about the All-commits mailing list