summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/Inliner.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2019-04-19 05:59:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2019-04-19 05:59:42 +0000
commitce3f75df1fffdb8bcef66ff82e83fa895e00260e (patch)
treec18d789929358501b909110e07e9a0df414b6717 /llvm/lib/Transforms/IPO/Inliner.cpp
parent82216048e6bcdf2e37b356e45954ac8cdceaab50 (diff)
downloadbcm5719-llvm-ce3f75df1fffdb8bcef66ff82e83fa895e00260e.tar.gz
bcm5719-llvm-ce3f75df1fffdb8bcef66ff82e83fa895e00260e.zip
[CallSite removal] Move the legacy PM, call graph, and some inliner
code to `CallBase`. This patch focuses on the legacy PM, call graph, and some of inliner and legacy passes interacting with those APIs from `CallSite` to the new `CallBase` class. No interesting changes. Differential Revision: https://reviews.llvm.org/D60412 llvm-svn: 358739
Diffstat (limited to 'llvm/lib/Transforms/IPO/Inliner.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/Inliner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp
index 4047c0acd19..f6e8b5344f5 100644
--- a/llvm/lib/Transforms/IPO/Inliner.cpp
+++ b/llvm/lib/Transforms/IPO/Inliner.cpp
@@ -671,7 +671,7 @@ inlineCallsImpl(CallGraphSCC &SCC, CallGraph &CG,
LLVM_DEBUG(dbgs() << " -> Deleting dead call: " << *Instr << "\n");
// Update the call graph by deleting the edge from Callee to Caller.
setInlineRemark(CS, "trivially dead");
- CG[Caller]->removeCallEdgeFor(CS);
+ CG[Caller]->removeCallEdgeFor(*cast<CallBase>(CS.getInstruction()));
Instr->eraseFromParent();
++NumCallsDeleted;
} else {
OpenPOWER on IntegriCloud