From: Eli Friedman Date: Wed, 31 Aug 2011 16:19:51 +0000 (+0000) Subject: Make sure we don't crash when -miphoneos-version-min is specified on x86. Hopefully... X-Git-Tag: android-x86-6.0-r1~928^2~1749 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ac86d43eae8bbfe5284d8e5fa17c141d1a7b1194;p=android-x86%2Fexternal-llvm.git 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 --- diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 381049b3175..37cab937e92 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -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)); }