[PruneEH] A naked, noinline function can return via InlineAsm
authorDavid Majnemer <david.majnemer@gmail.com>
Sat, 27 Jun 2015 07:52:53 +0000 (07:52 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sat, 27 Jun 2015 07:52:53 +0000 (07:52 +0000)
commit1166ce2460d5b47d7f5e1694b6645f0156ca4dfc
treeede83919e918b7fa32e53aee8b84c2e422976d93
parentdee1d964f200bc8261173b39d34e675e1a96843a
[PruneEH] A naked, noinline function can return via InlineAsm

The PruneEH pass tries to annotate functions as 'noreturn' if it doesn't
see a ReturnInst.  However, a naked function containing inline assembly
can contain control flow leaving the function.

This fixes PR23971.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240876 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PruneEH.cpp
test/Transforms/PruneEH/pr23971.ll [new file with mode: 0644]