[unittest] Add the missing bogus machine register info initialization.

llvm-svn: 365529
This commit is contained in:
Michael Liao 2019-07-09 18:22:48 +00:00
parent 0cfd75a07d
commit 9cf71d10f8
1 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,10 @@ class BogusRegisterInfo : public TargetRegisterInfo {
public:
BogusRegisterInfo()
: TargetRegisterInfo(nullptr, BogusRegisterClasses, BogusRegisterClasses,
nullptr, nullptr, LaneBitmask(~0u), nullptr) {}
nullptr, nullptr, LaneBitmask(~0u), nullptr) {
InitMCRegisterInfo(nullptr, 0, 0, 0, nullptr, 0, nullptr, 0, nullptr,
nullptr, nullptr, nullptr, nullptr, 0, nullptr, nullptr);
}
const MCPhysReg *
getCalleeSavedRegs(const MachineFunction *MF) const override {