Quiet a compiler warning about unused variable 'ExtVNI'.

llvm-svn: 126815
This commit is contained in:
Nick Lewycky 2011-03-02 01:43:30 +00:00
parent 43766d6f12
commit 68faa2dbbe
1 changed files with 1 additions and 0 deletions

View File

@ -794,6 +794,7 @@ void LiveIntervals::shrinkToUses(LiveInterval *li) {
// Extend the live range for VNI to be live at Idx. // Extend the live range for VNI to be live at Idx.
if (VNInfo *ExtVNI = NewLI.extendInBlock(BlockStart, Idx)) { if (VNInfo *ExtVNI = NewLI.extendInBlock(BlockStart, Idx)) {
(void)ExtVNI;
assert(ExtVNI == VNI && "Unexpected existing value number"); assert(ExtVNI == VNI && "Unexpected existing value number");
// Is this a PHIDef we haven't seen before? // Is this a PHIDef we haven't seen before?
if (!VNI->isPHIDef() || !UsedPHIs.insert(VNI)) if (!VNI->isPHIDef() || !UsedPHIs.insert(VNI))