[all-commits] [llvm/llvm-project] ea6b95: [lldb][NFC] Make ArrayRef initialization more obvi...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Tue Feb 25 00:48:46 PST 2020


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

  Changed paths:
    M lldb/tools/lldb-test/lldb-test.cpp

  Log Message:
  -----------
  [lldb][NFC] Make ArrayRef initialization more obvious in lldb-test.cpp

Seems like this code raised some alarm bells as it looks like an ArrayRef
to a temporary initializer list, but it's actually just calling the ArrayRef(T*, T*)
constructor. Let's clarify this and directly call the right ArrayRef constructor here.

Fixes rdar://problem/59176052




More information about the All-commits mailing list