aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LoopAligner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/LoopAligner.cpp')
-rw-r--r--lib/CodeGen/LoopAligner.cpp2
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();