From c731c97facb5ff56daceb724d75f1f14e8d01f39 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 3 Oct 2007 19:26:29 +0000 Subject: Use empty() member functions when that's what's being tested for instead of comparing begin() and end(). llvm-svn: 42585 --- llvm/lib/Analysis/AliasSetTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp') diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 0397af7e979..366909c0ebe 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -520,7 +520,7 @@ void AliasSet::print(std::ostream &OS) const { OS << " forwarding to " << (void*)Forward; - if (begin() != end()) { + if (!empty()) { OS << "Pointers: "; for (iterator I = begin(), E = end(); I != E; ++I) { if (I != begin()) OS << ", "; -- cgit v1.2.3