[X86] Fix prolog/epilog mismatch for stack protectors on win32-macho.
authorAmara Emerson <aemerson@apple.com>
Thu, 5 Dec 2019 23:41:50 +0000 (15:41 -0800)
committerAmara Emerson <aemerson@apple.com>
Fri, 6 Dec 2019 22:44:56 +0000 (14:44 -0800)
commit84fdd9d7a50b9b41148e5ae8b93bfc4d2613feea
tree4d18026a831416656080d98178f042f4882b8a1b
parentf3efd6957474bfd3b9b232ac6e4b3608174c3b79
[X86] Fix prolog/epilog mismatch for stack protectors on win32-macho.

The xor'ing behaviour is only used for msvc/crt environments, when we're targeting
macho the guard load code doesn't know about the xor in the epilog. Disable xor'ing
when targeting win32-macho to be consistent.

Differential Revision: https://reviews.llvm.org/D71095
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/stack-protector-strong-macho-win32-xor.ll [new file with mode: 0644]