diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-14 18:13:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-14 18:13:49 +0000 |
commit | a8c763b3071ae1a58ee8baeb282331245527e004 (patch) | |
tree | ae6a11d42901b80c9db1408f7dc3850f114b030c /lib/CodeGen/LoopAligner.cpp | |
parent | c1f1d46f000eacceaa861e5b083ef0424cb9b41a (diff) |
Use empty() instead of begin() == end().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LoopAligner.cpp')
-rw-r--r-- | lib/CodeGen/LoopAligner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LoopAligner.cpp b/lib/CodeGen/LoopAligner.cpp index 1888391d5e..44f5bb461d 100644 --- a/lib/CodeGen/LoopAligner.cpp +++ b/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(); |