Use empty() instead of begin() == end().
[oota-llvm.git] / lib / CodeGen / LiveInterval.cpp
index 0f5de9257a71959db4bb67e3743a9d0638c28692..ff430d71c7d79247424a406ae98202990f42c53e 100644 (file)
@@ -547,7 +547,7 @@ void LiveInterval::MergeValueInAsValue(const LiveInterval &RHS,
 /// used with an unknown definition value.
 void LiveInterval::MergeInClobberRanges(const LiveInterval &Clobbers,
                                         BumpPtrAllocator &VNInfoAllocator) {
-  if (Clobbers.begin() == Clobbers.end()) return;
+  if (Clobbers.empty()) return;
   
   // Find a value # to use for the clobber ranges.  If there is already a value#
   // for unknown values, use it.