Skip to content

Commit dbbe1d9

Browse files
committed
make_unique the new operator
1 parent 686d1cd commit dbbe1d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/include/llvm/CodeGen/LiveRegMatrix.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class LiveRegMatrix {
5959
unsigned RegMaskVirtReg = 0;
6060
BitVector RegMaskUsable;
6161

62-
LiveRegMatrix() : LIUAlloc(new LiveIntervalUnion::Allocator()) {};
62+
LiveRegMatrix()
63+
: LIUAlloc(std::make_unique<LiveIntervalUnion::Allocator>()) {};
6364
void releaseMemory();
6465

6566
public:

0 commit comments

Comments
 (0)