diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-04-27 17:35:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-04-27 17:35:19 +0000 |
commit | 27e4666c20650f2b10d93b98b7a0625a363df9df (patch) | |
tree | ca6f558b0b7a485c091422dfd486cf33a6596799 /lib | |
parent | 4af325d1b4b811277365a20aa6cfc7f719625198 (diff) | |
download | external_llvm-27e4666c20650f2b10d93b98b7a0625a363df9df.zip external_llvm-27e4666c20650f2b10d93b98b7a0625a363df9df.tar.gz external_llvm-27e4666c20650f2b10d93b98b7a0625a363df9df.tar.bz2 |
Also delete last unused val#.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index 0450c35..c34b628 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -629,6 +629,12 @@ void LiveInterval::MergeInClobberRanges(const LiveInterval &Clobbers, UnusedValNo = 0; } } + + if (UnusedValNo) { + // Delete the last unused val#. + valnos.pop_back(); + UnusedValNo->~VNInfo(); + } } void LiveInterval::MergeInClobberRange(unsigned Start, unsigned End, |