[llvm-commits] [llvm] r52589 - /llvm/trunk/lib/Analysis/IntervalPartition.cpp
Chris Lattner
sabre at nondot.org
Sat Jun 21 12:48:22 PDT 2008
Author: lattner
Date: Sat Jun 21 14:48:22 2008
New Revision: 52589
URL: http://llvm.org/viewvc/llvm-project?rev=52589&view=rev
Log:
fix warning when assertions disabled.
Modified:
llvm/trunk/lib/Analysis/IntervalPartition.cpp
Modified: llvm/trunk/lib/Analysis/IntervalPartition.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IntervalPartition.cpp?rev=52589&r1=52588&r2=52589&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IntervalPartition.cpp (original)
+++ llvm/trunk/lib/Analysis/IntervalPartition.cpp Sat Jun 21 14:48:22 2008
@@ -91,8 +91,7 @@
//
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);
More information about the llvm-commits
mailing list