[WinEH] Fix xdata generation when no catch object is present
authorReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 19:46:38 +0000 (19:46 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 7 Apr 2015 19:46:38 +0000 (19:46 +0000)
commitf1853c65d99e72c212a8ca048e609876168cb0ff
treedeb587b0e4064e320e57a3c30a1f093d24d422fa
parent39e20aa9c20766cbce0b74d6f12f4d4f5b2d937d
[WinEH] Fix xdata generation when no catch object is present

The lack of a catch object is indicated by a frame escape index of -1.

Fixes PR23137.

llvm-svn: 234346
llvm/include/llvm/MC/MCContext.h
llvm/lib/CodeGen/AsmPrinter/Win64Exception.cpp
llvm/test/CodeGen/WinEH/cppeh-prepared-catch-all.ll [new file with mode: 0644]