From de6f8153691503b0f0c21f6891bfcbd63facd045 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 16 Oct 2017 21:19:40 +0000 Subject: [PATCH] Replace make_range in MachineRegisterInfo with ArrayRef, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315938 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineRegisterInfo.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index 3f8dcfe76cc..e761ef2f7c3 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -841,8 +841,9 @@ public: livein_iterator livein_begin() const { return LiveIns.begin(); } livein_iterator livein_end() const { return LiveIns.end(); } bool livein_empty() const { return LiveIns.empty(); } - iterator_range liveins() const { - return make_range(livein_begin(), livein_end()); + + ArrayRef> liveins() const { + return LiveIns; } bool isLiveIn(unsigned Reg) const; -- 2.40.0