fix warning when assertions disabled.

llvm-svn: 52589
This commit is contained in:
Chris Lattner 2008-06-21 19:48:22 +00:00
parent 18a3284a0a
commit e635acab67
1 changed files with 1 additions and 2 deletions

View File

@ -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);