unique_ptrify LiveRange::segmentSet
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 3 Mar 2015 23:30:40 +0000 (23:30 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 3 Mar 2015 23:30:40 +0000 (23:30 +0000)
commit45499d3adb53da24a4e43dccc2f207a14b1ef9e8
tree993233b1494861dd555b6374aaf19572b864a444
parentae0620c4e9be8e4be0ff3d7afad260f569742659
unique_ptrify LiveRange::segmentSet

This makes LiveRange non-copyable, and LiveInterval is already
non-movable (due to the explicit dtor), so now it's non-copyable and
non-movable.

Fix the one case where we were relying on the (deprecated in C++11)
implicit copy ctor of LiveInterval (which happened to work because the
ctor created an object with a null segmentSet, so double-deleting the
null pointer was fine).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231168 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveInterval.h
lib/CodeGen/LiveInterval.cpp
lib/CodeGen/LiveStackAnalysis.cpp