aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOutliner.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-01-09 09:24:59 -0800
committerKazu Hirata <kazu@google.com>2021-01-09 09:25:00 -0800
commit6a6e382161a9e37d8022de205bd1e1ac5762befd (patch)
tree5c580967c2bcc0cfb243d4ae2f6a1c74f48ebc85 /llvm/lib/CodeGen/MachineOutliner.cpp
parent4d92ab1669a4a74219c655e00c6de6ea03b16fe8 (diff)
downloadllvm-6a6e382161a9e37d8022de205bd1e1ac5762befd.zip
llvm-6a6e382161a9e37d8022de205bd1e1ac5762befd.tar.gz
llvm-6a6e382161a9e37d8022de205bd1e1ac5762befd.tar.bz2
[llvm] Drop unnecessary make_range (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineOutliner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp
index e2c15c6..02998d4 100644
--- a/llvm/lib/CodeGen/MachineOutliner.cpp
+++ b/llvm/lib/CodeGen/MachineOutliner.cpp
@@ -688,7 +688,7 @@ MachineFunction *MachineOutliner::createOutlinedFunction(
// The live-in set for the outlined function is the union of the live-ins
// from all the outlining points.
- for (MCPhysReg Reg : make_range(CandLiveIns.begin(), CandLiveIns.end()))
+ for (MCPhysReg Reg : CandLiveIns)
LiveIns.addReg(Reg);
}
addLiveIns(MBB, LiveIns);