[PATCH] D12743: [CodeGen] Teach SimplifyPersonality about the updated LandingPadInst

Vedant Kumar via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 9 17:17:11 PDT 2015


vsk created this revision.
vsk added reviewers: majnemer, rjmccall.
vsk added a subscriber: cfe-commits.

When personality function references were moved from LandingPadInst to                           
Function, we forgot to update SimplifyPersonality(). This is an                                  
optimization which replaces personality functions with the default C++                           
personality if it has only C++-style uses. As a result, some ObjC++                              
projects could no longer link against C++ libraries (seeing as the                               
exception ABI had effectively changed).

http://reviews.llvm.org/D12743

Files:
  lib/CodeGen/CGException.cpp
  test/CodeGenObjCXX/exception-cxx.mm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12743.34391.patch
Type: text/x-patch
Size: 4045 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150910/e3c16f3c/attachment.bin>


More information about the cfe-commits mailing list