[all-commits] [llvm/llvm-project] e913a7: Fix a warning about named return value not being m...

David Blaikie via All-commits all-commits at lists.llvm.org
Mon Mar 1 09:25:57 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e913a754143f227b4aea5f695a2dcd2349101886
      https://github.com/llvm/llvm-project/commit/e913a754143f227b4aea5f695a2dcd2349101886
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M lldb/source/Interpreter/OptionValue.cpp

  Log Message:
  -----------
  Fix a warning about named return value not being moved-from.

The use of an rvalue reference here was using reference lifetime
extension needlessly - the code is simpler and more efficient without
it.


  Commit: 776be16ba0532dbb3d66cc104d15a7f13a154e3f
      https://github.com/llvm/llvm-project/commit/776be16ba0532dbb3d66cc104d15a7f13a154e3f
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M lldb/unittests/Interpreter/TestOptionValue.cpp

  Log Message:
  -----------
  Fix virtual-dtor warning a different way, since a virtual dtor is not required for this use case.


Compare: https://github.com/llvm/llvm-project/compare/c89d9d8a48c0...776be16ba053


More information about the All-commits mailing list