[llvm] [InstrRef][nfc] Remove usage of unique_ptrs of arrays (PR #74203)
Felipe de Azevedo Piovezan via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 10:18:54 PST 2023
================
@@ -205,11 +205,11 @@ namespace LiveDebugValues {
using namespace llvm;
/// Type for a table of values in a block.
-using ValueTable = std::unique_ptr<ValueIDNum[]>;
+using ValueTable = SmallVector<ValueIDNum, 0>;
/// Type for a table-of-table-of-values, i.e., the collection of either
/// live-in or live-out values for each block in the function.
-using FuncValueTable = std::unique_ptr<ValueTable[]>;
+using FuncValueTable = SmallVector<ValueTable, 0>;
----------------
felipepiovezan wrote:
I agree.
@jmorse would you be ok if I removed the `FuncValueTable` typedef and only kept `ValueTable`?
https://github.com/llvm/llvm-project/pull/74203
More information about the llvm-commits
mailing list