[llvm-commits] [llvm] r138856 - /llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Aug 31 09:19:52 PDT 2011
Author: efriedma
Date: Wed Aug 31 11:19:51 2011
New Revision: 138856
URL: http://llvm.org/viewvc/llvm-project?rev=138856&view=rev
Log:
Make sure we don't crash when -miphoneos-version-min is specified on x86. Hopefully this will fix gcc testsuite failures.
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=138856&r1=138855&r2=138856&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Wed Aug 31 11:19:51 2011
@@ -901,7 +901,8 @@
}
// 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));
}
More information about the llvm-commits
mailing list