less indent; NFCI
[oota-llvm.git] / lib / CodeGen / AggressiveAntiDepBreaker.cpp
index bba8f511dc9b93523a9fa60d7305747f418ef8dc..845408f15f5c052faa8824937ba80c60dde8b3c0 100644 (file)
@@ -142,7 +142,7 @@ void AggressiveAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
   assert(!State);
   State = new AggressiveAntiDepState(TRI->getNumRegs(), BB);
 
-  bool IsReturnBlock = (!BB->empty() && BB->back().isReturn());
+  bool IsReturnBlock = BB->isReturnBlock();
   std::vector<unsigned> &KillIndices = State->GetKillIndices();
   std::vector<unsigned> &DefIndices = State->GetDefIndices();