diff options
author | Yevgeny Rouban <yevgeny.rouban@azul.com> | 2019-01-31 08:49:20 +0000 |
---|---|---|
committer | Yevgeny Rouban <yevgeny.rouban@azul.com> | 2019-01-31 08:49:20 +0000 |
commit | ae29857d64ccefa22a69bcfee5115df30b762c4a (patch) | |
tree | be467d7e777004eba9bdfbdf684b64cf5e4484a3 /llvm/lib | |
parent | f222259c3ce1e401008ad4f892f6849eaec96e3b (diff) | |
download | bcm5719-llvm-ae29857d64ccefa22a69bcfee5115df30b762c4a.tar.gz bcm5719-llvm-ae29857d64ccefa22a69bcfee5115df30b762c4a.zip |
Test commit. NFCI.
llvm-svn: 352738
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/InlineCost.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp index 478c8af6c95..48666566dd9 100644 --- a/llvm/lib/Analysis/InlineCost.cpp +++ b/llvm/lib/Analysis/InlineCost.cpp @@ -2077,7 +2077,8 @@ bool llvm::isInlineViable(Function &F) { for (Function::iterator BI = F.begin(), BE = F.end(); BI != BE; ++BI) { // Disallow inlining of functions which contain indirect branches or // blockaddresses. - if (isa<IndirectBrInst>(BI->getTerminator()) || BI->hasAddressTaken()) + if (isa<IndirectBrInst>(BI->getTerminator()) || + BI->hasAddressTaken()) return false; for (auto &II : *BI) { |