Fix a pretty scary bug I introduced into the always inliner with
authorChandler Carruth <chandlerc@gmail.com>
Sun, 1 Apr 2012 10:21:05 +0000 (10:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 1 Apr 2012 10:21:05 +0000 (10:21 +0000)
commit6052eef8bd701b30a0ab5749296671ca34389c39
tree829e0a222fd59a3cdea969cd34a8e1e43bea8a8b
parent0b42f9dd2fb166190c7ebd9b6e6925f59db4f205
Fix a pretty scary bug I introduced into the always inliner with
a single missing character. Somehow, this had gone untested. I've added
tests for returns-twice logic specifically with the always-inliner that
would have caught this, and fixed the bug.

Thanks to Matt for the careful review and spotting this!!! =D

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153832 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/InlineAlways.cpp
test/Transforms/Inline/always-inline.ll