From 61cf1a9e857f85833fad45e28efbc960565aa517 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 llvm-svn: 304036 --- llvm/include/llvm/CodeGen/LivePhysRegs.h | 3 ++- llvm/lib/CodeGen/LivePhysRegs.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/LivePhysRegs.h b/llvm/include/llvm/CodeGen/LivePhysRegs.h index fede6a8..a889e4d 100644 --- a/llvm/include/llvm/CodeGen/LivePhysRegs.h +++ b/llvm/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/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp index 317e38d..0dc1079 100644 --- a/llvm/lib/CodeGen/LivePhysRegs.cpp +++ b/llvm/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.7.4