X86: loosen an overly aggressive MachO assertion
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 20 Sep 2016 17:05:04 +0000 (17:05 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 20 Sep 2016 17:05:04 +0000 (17:05 +0000)
commit03ffa797ad4fe8f85da532aa3f687841a60b4c0c
tree82e20815f9c9291b8fa733bebb6d659dd58bc83e
parentc8e7c98b66051cc0a93f4efaa3410da3db059d31
X86: loosen an overly aggressive MachO assertion

We would assert that the FP setup CFI used esp/rsp always.  This held up in
practice when the code was generated from IR.  However, with the integrated
assembler, it is possible to have the input be user specified assembly.  In such
a case, we cannot assume that the function implementation has a compact unwind
representation.  Loosen the assertion into a check and bail if we cannot
represent the frame pointer in the compact unwinding.

Addresses PR30453!

llvm-svn: 281986
llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
llvm/test/MC/X86/fp-setup-macho.s [new file with mode: 0644]