diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2021-04-06 16:33:28 +0200 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2021-04-06 16:33:28 +0200 |
commit | fb6a5237aa73e42d476f3736afcd531a593d3c33 (patch) | |
tree | 3e34b0f1fe2e69c9767cf7aa9b6939a7835a54cf /llvm/lib/IR/Function.cpp | |
parent | ce4acb01b315b74e04da83d89304bd159b31dadd (diff) | |
download | llvm-fb6a5237aa73e42d476f3736afcd531a593d3c33.zip llvm-fb6a5237aa73e42d476f3736afcd531a593d3c33.tar.gz llvm-fb6a5237aa73e42d476f3736afcd531a593d3c33.tar.bz2 |
Revert "[IR] Ignore bitcasts of function pointers which are only used as callees in callbase instruction"
This reverts commit 167ea67d
This causes a bunch of build failures:
* http://lab.llvm.org:8011/#/builders/121/builds/6287
* http://green.lab.llvm.org/green/job/clang-stage1-RA/19915
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index f759771..1001607 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -1637,14 +1637,6 @@ bool Function::hasAddressTaken(const User **PutOffender, continue; } - if (isa<BitCastOperator>(FU) && isa<ConstantExpr>(FU) && - llvm::all_of(FU->uses(), [](const Use &U) { - if (const CallBase *CB = dyn_cast<CallBase>(U.getUser())) - return CB->isCallee(&U); - return false; - })) - continue; - const auto *Call = dyn_cast<CallBase>(FU); if (!Call) { if (IgnoreAssumeLikeCalls) { |