mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +00:00
Make sure we don't crash when -miphoneos-version-min is specified on x86. Hopefully this will fix gcc testsuite failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c967ad8c88
commit
ac86d43eae
@ -901,7 +901,8 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
}
|
||||
|
||||
// Darwin 10.7 and greater has support for compact unwind encoding.
|
||||
if (STI.isTargetDarwin() && !STI.getTargetTriple().isMacOSXVersionLT(10, 7))
|
||||
if (STI.getTargetTriple().isMacOSX() &&
|
||||
!STI.getTargetTriple().isMacOSXVersionLT(10, 7))
|
||||
MMI.setCompactUnwindEncoding(getCompactUnwindEncoding(MF));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user