OSDN Git Service

[WinEH] Insert the catchpad return before CSR restoration
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 9 Oct 2015 22:18:45 +0000 (22:18 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 9 Oct 2015 22:18:45 +0000 (22:18 +0000)
commit8d335f0c319bd2f9e63a76427eaa80531c21e52f
tree2c4ffe327efc7153de9da2ddb76265f0a96bc6a9
parent213ae79e1a6e4e3c5c94a6a089f361d63f4267ea
[WinEH] Insert the catchpad return before CSR restoration

x64 catchpads use rax to inform the unwinder where control should go
next.  However, we must initialize rax before the epilogue sequence so
as to not perturb the unwinder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249910 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
test/CodeGen/X86/win-catchpad-csrs.ll