PartiallyInlineLibCalls: Check sqrt result type before transforming it.
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 1 Aug 2014 23:21:21 +0000 (23:21 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Fri, 1 Aug 2014 23:21:21 +0000 (23:21 +0000)
commitf425efdbc290cc8af63c2a620699bf13c5df6e57
treea97db61c3c9a04ab0e4d73c52bfb72bfe8a83703
parentb2b0ad4c75ce683da6f92de378c1c3422fc938a9
PartiallyInlineLibCalls: Check sqrt result type before transforming it.

Some configure scripts declare this with the wrong prototype, which can lead
to an assertion failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214593 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
test/Transforms/PartiallyInlineLibCalls/bad-prototype.ll [new file with mode: 0644]