[X86] Make sure startproc/endproc are paired
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 11 Sep 2015 17:34:34 +0000 (17:34 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 11 Sep 2015 17:34:34 +0000 (17:34 +0000)
commit4c531243304e9405ec244f802c6da37217952456
treeff7153b24cebce068a83d21aac59aa4e64dc59b6
parent8ae5f645e78b086ced0a6bc99b9bd07205cdb73e
[X86] Make sure startproc/endproc are paired

We used different conditions to determine if we should emit startproc vs
endproc.  Use the same condition to ensure that they will always be
paired.

This fixes PR24374.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247435 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/WinException.cpp
test/CodeGen/X86/pr24374.ll [new file with mode: 0644]