From 8de6d22392196842f78cfca89ac22d5eccf3c6ab Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 14 Aug 2008 18:13:49 +0000 Subject: Use empty() instead of begin() == end(). llvm-svn: 54780 --- llvm/lib/CodeGen/StrongPHIElimination.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/StrongPHIElimination.cpp') diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index 37f54ce93a7..9f59417b5dc 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/lib/CodeGen/StrongPHIElimination.cpp @@ -848,7 +848,7 @@ void StrongPHIElimination::mergeLiveIntervals(unsigned primary, RHS.removeValNo(*VI); } - if (RHS.begin() == RHS.end()) + if (RHS.empty()) LI.removeInterval(RHS.reg); } -- cgit v1.2.3