summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FrameLowering.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-08-31 16:19:51 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-08-31 16:19:51 +0000
commit635d9692b6e6d273a959a19609589d64f0e403dd (patch)
tree8be0c3facdaf693e9fbc0ae2436e53af42212148 /llvm/lib/Target/X86/X86FrameLowering.cpp
parentb74486312b398ea888f83c7578f5a0522fdd1f3d (diff)
downloadbcm5719-llvm-635d9692b6e6d273a959a19609589d64f0e403dd.tar.gz
bcm5719-llvm-635d9692b6e6d273a959a19609589d64f0e403dd.zip
Make sure we don't crash when -miphoneos-version-min is specified on x86. Hopefully this will fix gcc testsuite failures.
llvm-svn: 138856
Diffstat (limited to 'llvm/lib/Target/X86/X86FrameLowering.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FrameLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp
index 381049b3175..37cab937e92 100644
--- a/llvm/lib/Target/X86/X86FrameLowering.cpp
+++ b/llvm/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));
}
OpenPOWER on IntegriCloud