diff --git a/include/llvm/IR/CFG.h b/include/llvm/IR/CFG.h index 3b419da120d..b166df954cd 100644 --- a/include/llvm/IR/CFG.h +++ b/include/llvm/IR/CFG.h @@ -103,7 +103,7 @@ using pred_iterator = PredIterator; using const_pred_iterator = PredIterator; using pred_range = iterator_range; -using pred_const_range = iterator_range; +using const_pred_range = iterator_range; inline pred_iterator pred_begin(BasicBlock *BB) { return pred_iterator(BB); } inline const_pred_iterator pred_begin(const BasicBlock *BB) { @@ -124,8 +124,8 @@ inline unsigned pred_size(const BasicBlock *BB) { inline pred_range predecessors(BasicBlock *BB) { return pred_range(pred_begin(BB), pred_end(BB)); } -inline pred_const_range predecessors(const BasicBlock *BB) { - return pred_const_range(pred_begin(BB), pred_end(BB)); +inline const_pred_range predecessors(const BasicBlock *BB) { + return const_pred_range(pred_begin(BB), pred_end(BB)); } //===----------------------------------------------------------------------===//