diff options
author | Craig Topper <craig.topper@gmail.com> | 2020-04-27 20:15:59 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2020-04-27 22:17:03 -0700 |
commit | a58b62b4a2b96c31b49338b262b609db746449e8 (patch) | |
tree | b8549e279ee3b6dd34c461038f3e9f0e19fc7f33 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 756ba3548cbeef6c18866914fa935ade8b3edf1c (diff) | |
download | llvm-a58b62b4a2b96c31b49338b262b609db746449e8.zip llvm-a58b62b4a2b96c31b49338b262b609db746449e8.tar.gz llvm-a58b62b4a2b96c31b49338b262b609db746449e8.tar.bz2 |
[IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand().
This method has been commented as deprecated for a while. Remove
it and replace all uses with the equivalent getCalledOperand().
I also made a few cleanups in here. For example, to removes use
of getElementType on a pointer when we could just use getFunctionType
from the call.
Differential Revision: https://reviews.llvm.org/D78882
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp index 2f6e2a0..b900a38 100644 --- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp +++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp @@ -316,7 +316,7 @@ static void computeFunctionSummary(ModuleSummaryIndex &Index, const Module &M, if (HasLocalsInUsedOrAsm && CI && CI->isInlineAsm()) HasInlineAsmMaybeReferencingInternal = true; - auto *CalledValue = CB->getCalledValue(); + auto *CalledValue = CB->getCalledOperand(); auto *CalledFunction = CB->getCalledFunction(); if (CalledValue && !CalledFunction) { CalledValue = CalledValue->stripPointerCasts(); |