[llvm-branch-commits] [llvm] [CodeGen] LiveRegMatrix: Use allocator through a unique_ptr (PR #120556)
Mircea Trofin via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 19 06:52:24 PST 2024
================
@@ -59,15 +59,11 @@ class LiveRegMatrix {
unsigned RegMaskVirtReg = 0;
BitVector RegMaskUsable;
- LiveRegMatrix() = default;
+ LiveRegMatrix() : LIUAlloc(new LiveIntervalUnion::Allocator()) {};
----------------
mtrofin wrote:
nit: could also do `LIUAlloc(std::make_unique<LiveIntervalUnion::Allocator>)` up to you.
https://github.com/llvm/llvm-project/pull/120556
More information about the llvm-branch-commits
mailing list