]> granicus.if.org Git - clang/commit
[SEH] Fix x64 __exception_code in __except blocks
authorReid Kleckner <rnk@google.com>
Wed, 7 Oct 2015 01:07:13 +0000 (01:07 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 7 Oct 2015 01:07:13 +0000 (01:07 +0000)
commit8fcec56c0b9b4e3e6e65772d66cf82a319aa35f1
tree70416a2db2be5f2464bf734bd30cd667717b8012
parent94faed61378d32c6f06fa60c1a133486f1460658
[SEH] Fix x64 __exception_code in __except blocks

Use llvm.eh.exceptioncode to get the code out of EAX for x64. For
32-bit, the filter is responsible for storing it to memory for us.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249497 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGException.cpp
test/CodeGen/exceptions-seh-new.c