]> granicus.if.org Git - clang/commit
[CodeGen] Teach SimplifyPersonality about the updated LandingPadInst
authorVedant Kumar <vsk@apple.com>
Fri, 11 Sep 2015 15:40:05 +0000 (15:40 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 11 Sep 2015 15:40:05 +0000 (15:40 +0000)
commit3c02b7312f417e6a400c8aaba97b167e36c6e410
tree2355f3f94f97e3f1df4c001f088f4b085d63c121
parent718f45508a18a272d178f017ed79832d8384a49c
[CodeGen] Teach SimplifyPersonality about the updated LandingPadInst

When uses of personality functions were moved from LandingPadInst to
Function, we forgot to update SimplifyPersonality(). This patch corrects
that.

Note: SimplifyPersonality() is an optimization which replaces
personality functions with the default C++ personality when possible.
Without this update, some ObjC++ projects fail to link against C++
libraries (seeing as the exception ABI had effectively changed).

rdar://problem/22155434

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247421 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGException.cpp
test/CodeGenObjCXX/exception-cxx.mm [new file with mode: 0644]
test/CodeGenObjCXX/personality-abuse.mm [new file with mode: 0644]