From 7c75114e0e974802baaf7be051dad988237daf08 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 26 May 2017 21:50:51 +0000 Subject: [PATCH] LivePhysRegs: Add default for removeRegsInMask(Clobbers); NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304036 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/LivePhysRegs.h | 3 ++- lib/CodeGen/LivePhysRegs.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/LivePhysRegs.h b/include/llvm/CodeGen/LivePhysRegs.h index fede6a856f9..a889e4d86bb 100644 --- a/include/llvm/CodeGen/LivePhysRegs.h +++ b/include/llvm/CodeGen/LivePhysRegs.h @@ -95,7 +95,8 @@ public: /// \brief Removes physical registers clobbered by the regmask operand @p MO. void removeRegsInMask(const MachineOperand &MO, - SmallVectorImpl> *Clobbers); + SmallVectorImpl> *Clobbers = + nullptr); /// \brief Returns true if register @p Reg is contained in the set. This also /// works if only the super register of @p Reg has been defined, because diff --git a/lib/CodeGen/LivePhysRegs.cpp b/lib/CodeGen/LivePhysRegs.cpp index 317e38ded07..0dc1079b2ad 100644 --- a/lib/CodeGen/LivePhysRegs.cpp +++ b/lib/CodeGen/LivePhysRegs.cpp @@ -53,7 +53,7 @@ void LivePhysRegs::stepBackward(const MachineInstr &MI) { continue; removeReg(Reg); } else if (O->isRegMask()) - removeRegsInMask(*O, nullptr); + removeRegsInMask(*O); } // Add uses to the set. -- 2.40.0