From 0c989a893b0e65a7fac91982b1c05426c55ed14b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 8 Dec 2016 00:15:51 +0000 Subject: LivePhysReg: Use reference instead of pointer in init(); NFC llvm-svn: 289002 --- llvm/lib/CodeGen/BranchFolding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/BranchFolding.cpp') diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 20c36a923df..20dc8805150 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -353,7 +353,7 @@ void BranchFolder::computeLiveIns(MachineBasicBlock &MBB) { if (!UpdateLiveIns) return; - LiveRegs.init(TRI); + LiveRegs.init(*TRI); LiveRegs.addLiveOutsNoPristines(MBB); for (MachineInstr &MI : make_range(MBB.rbegin(), MBB.rend())) LiveRegs.stepBackward(MI); -- cgit v1.2.3