summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LoopAligner.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-14 18:13:49 +0000
committerDan Gohman <gohman@apple.com>2008-08-14 18:13:49 +0000
commit8de6d22392196842f78cfca89ac22d5eccf3c6ab (patch)
tree457f54306be85c5a26837780eb7d7646816a4f94 /llvm/lib/CodeGen/LoopAligner.cpp
parent4801bd41cf2a3491f21dbd526dc91346e4d54c05 (diff)
downloadbcm5719-llvm-8de6d22392196842f78cfca89ac22d5eccf3c6ab.tar.gz
bcm5719-llvm-8de6d22392196842f78cfca89ac22d5eccf3c6ab.zip
Use empty() instead of begin() == end().
llvm-svn: 54780
Diffstat (limited to 'llvm/lib/CodeGen/LoopAligner.cpp')
-rw-r--r--llvm/lib/CodeGen/LoopAligner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LoopAligner.cpp b/llvm/lib/CodeGen/LoopAligner.cpp
index 1888391d5e7..44f5bb461dc 100644
--- a/llvm/lib/CodeGen/LoopAligner.cpp
+++ b/llvm/lib/CodeGen/LoopAligner.cpp
@@ -46,7 +46,7 @@ FunctionPass *llvm::createLoopAlignerPass() { return new LoopAligner(); }
bool LoopAligner::runOnMachineFunction(MachineFunction &MF) {
const MachineLoopInfo *MLI = &getAnalysis<MachineLoopInfo>();
- if (MLI->begin() == MLI->end())
+ if (MLI->empty())
return false; // No loops.
const TargetLowering *TLI = MF.getTarget().getTargetLowering();
OpenPOWER on IntegriCloud