forked from OSchip/llvm-project
Make sure we don't crash when -miphoneos-version-min is specified on x86. Hopefully this will fix gcc testsuite failures.
llvm-svn: 138856
This commit is contained in:
parent
b74486312b
commit
635d9692b6
|
@ -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…
Reference in New Issue