diff options
Diffstat (limited to 'lib/CodeGen/LiveInterval.cpp')
| -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 0450c355dc..c34b628d5f 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, | 
