Skip to content

Commit 80b9b1e

Browse files
committed
Use getMCAsmInfo()->usesWindowsCFI() instead of isTargetWindows()
1 parent e9c0090 commit 80b9b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ static bool isLikelyToHaveSVEStack(const MachineFunction &MF) {
356356
}
357357

358358
static bool isTargetWindows(const MachineFunction &MF) {
359-
return MF.getSubtarget<AArch64Subtarget>().isTargetWindows();
359+
return MF.getTarget().getMCAsmInfo()->usesWindowsCFI();
360360
}
361361

362362
// Windows unwind can't represent the required stack adjustments if we have

0 commit comments

Comments
 (0)