It is pointless to turn a UINT_TO_FP into an
[oota-llvm.git] / lib / Analysis / IntervalPartition.cpp
index e73b40b63ed7ae7ba6a475899e79f1d53c1ed9ef..2d5f1cd09021a627a10c8e64dbc43f47067f9837 100644 (file)
@@ -17,7 +17,7 @@ using namespace llvm;
 
 char IntervalPartition::ID = 0;
 static RegisterPass<IntervalPartition>
-X("intervals", "Interval Partition Construction", true);
+X("intervals", "Interval Partition Construction", true, true);
 
 //===----------------------------------------------------------------------===//
 // IntervalPartition Implementation
@@ -91,8 +91,7 @@ bool IntervalPartition::runOnFunction(Function &F) {
 //
 IntervalPartition::IntervalPartition(IntervalPartition &IP, bool)
   : FunctionPass((intptr_t) &ID) {
-  Interval *FunctionStart = IP.getRootInterval();
-  assert(FunctionStart && "Cannot operate on empty IntervalPartitions!");
+  assert(IP.getRootInterval() && "Cannot operate on empty IntervalPartitions!");
 
   // Pass false to intervals_begin because we take ownership of it's memory
   interval_part_interval_iterator I = intervals_begin(IP, false);