[llvm] [InstrRef][nfc] Remove usage of unique_ptrs of arrays (PR #74203)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 13:47:02 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>;
----------------
jmorse wrote:

SGTM!

https://github.com/llvm/llvm-project/pull/74203


More information about the llvm-commits mailing list