File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ void CFIInstrInserter::calculateCFAInfo(MachineFunction &MF) {
151
151
Register InitialRegister =
152
152
MF.getSubtarget ().getFrameLowering ()->getInitialCFARegister (MF);
153
153
InitialRegister = TRI.getDwarfRegNum (InitialRegister, true );
154
- unsigned NumRegs = TRI.getNumRegs ( );
154
+ unsigned NumRegs = TRI.getNumSupportedRegs (MF );
155
155
156
156
// Initialize MBBMap.
157
157
for (MachineBasicBlock &MBB : MF) {
@@ -181,7 +181,7 @@ void CFIInstrInserter::calculateOutgoingCFAInfo(MBBCFAInfo &MBBInfo) {
181
181
MachineFunction *MF = MBBInfo.MBB ->getParent ();
182
182
const std::vector<MCCFIInstruction> &Instrs = MF->getFrameInstructions ();
183
183
const TargetRegisterInfo &TRI = *MF->getSubtarget ().getRegisterInfo ();
184
- unsigned NumRegs = TRI.getNumRegs ( );
184
+ unsigned NumRegs = TRI.getNumSupportedRegs (*MF );
185
185
BitVector CSRSaved (NumRegs), CSRRestored (NumRegs);
186
186
187
187
// Determine cfa offset and register set by the block.
You can’t perform that action at this time.
0 commit comments