Attempting to fix r205124, which had failed asserts when built with MSVC.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 1 Apr 2014 13:56:35 +0000 (13:56 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 1 Apr 2014 13:56:35 +0000 (13:56 +0000)
Suggestion from Yaron Keren.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205313 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index cd7714df259c7ad64c4d93e74e6b7e22ef658041..5662f65f82d9e087cc18187c81b4f03730b8f6dc 100644 (file)
@@ -11038,7 +11038,7 @@ SDValue X86TargetLowering::LowerBRCOND(SDValue Op, SelectionDAG &DAG) const {
 SDValue
 X86TargetLowering::LowerDYNAMIC_STACKALLOC(SDValue Op,
                                            SelectionDAG &DAG) const {
-  assert((Subtarget->isTargetCygMing() || Subtarget->isTargetWindows() ||
+  assert((Subtarget->isOSWindows() ||
           getTargetMachine().Options.EnableSegmentedStacks) &&
          "This should be used only on Windows targets or when segmented stacks "
          "are being used");