File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
81
81
: CSR_AAPCS_SwiftTail_SaveList);
82
82
} else if (F.hasFnAttribute (" interrupt" )) {
83
83
84
- // Don't bother saving the floating point registers if target is not hard
85
- // float . This will prevent the Thumb1FrameLowering (cortex-m0) from
86
- // crashing due to an llvm_unreachable being triggered when a D-class
87
- // register is in the calling convention.
88
- if (STI.isTargetHardFloat () && F.hasFnAttribute (" save-fp" )) {
84
+ // Don't bother saving the floating point registers if target does not have
85
+ // floating point registers . This will prevent the Thumb1FrameLowering
86
+ // (cortex-m0) from crashing due to an llvm_unreachable being triggered when
87
+ // a D-class register is in the calling convention.
88
+ if (STI.hasFPRegs () && F.hasFnAttribute (" save-fp" )) {
89
89
bool HasNEON = STI.hasNEON ();
90
90
91
91
if (STI.isMClass ()) {
You can’t perform that action at this time.
0 commit comments