LivePhysRegs: Add default for removeRegsInMask(Clobbers); NFC

llvm-svn: 304036
This commit is contained in:
Matthias Braun 2017-05-26 21:50:51 +00:00
parent d8f4e99933
commit 61cf1a9e85
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,8 @@ public:
/// \brief Removes physical registers clobbered by the regmask operand @p MO.
void removeRegsInMask(const MachineOperand &MO,
SmallVectorImpl<std::pair<unsigned, const MachineOperand*>> *Clobbers);
SmallVectorImpl<std::pair<unsigned, const MachineOperand*>> *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

View File

@ -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.