[PATCH] Fix ARM EHABI when function has landingpad and nounwind.

Logan Chien tzuhsiang.chien at gmail.com
Tue May 13 12:43:29 PDT 2014


Hi asl,

If the function has the landingpad instruction, then the
handlerdata should be emitted even if the function has
nouwnind attribute.  Otherwise, following code will not
work:

void test1() noexcept {
  try {
    throw_exception();
  } catch (...) {
  }
}

http://reviews.llvm.org/D3748

Files:
  lib/CodeGen/AsmPrinter/ARMException.cpp
  test/CodeGen/ARM/ehabi-handlerdata-nounwind.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3748.9360.patch
Type: text/x-patch
Size: 3616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140513/364a0587/attachment.bin>


More information about the llvm-commits mailing list