[SjLjEHPrepare] Don't grab pointers to functions in doInitialization
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 19 Feb 2016 03:13:40 +0000 (03:13 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 19 Feb 2016 03:13:40 +0000 (03:13 +0000)
commitbd1b8c088963e7f7ea7417e8a4fe5cabdaf500ad
tree663732422dcb55b54e07eb13b0fa5010f1a24903
parentac07270828e6d34acbae9584789e8709a18b258a
[SjLjEHPrepare] Don't grab pointers to functions in doInitialization

Certain optimization passes (like globaldce) can prune function
declaration that SjLjEHPrepare assumed would exit when it'd
runOnFunction.

This fixes PR26669.

llvm-svn: 261303
llvm/lib/CodeGen/SjLjEHPrepare.cpp
llvm/test/CodeGen/ARM/pr26669.ll [new file with mode: 0644]