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/CodeGen/MachineBasicBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 134d276..6a8b083 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -119,7 +119,7 @@ void MachineBasicBlock::print(std::ostream &OS) const { OS << ":\n"; const MRegisterInfo *MRI = MF->getTarget().getRegisterInfo(); - if (livein_begin() != livein_end()) { + if (!livein_empty()) { OS << "Live Ins:"; for (const_livein_iterator I = livein_begin(),E = livein_end(); I != E; ++I) OutputReg(OS, *I, MRI); -- cgit v1.1