aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LowerInvoke.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2020-04-27 20:15:59 -0700
committerCraig Topper <craig.topper@gmail.com>2020-04-27 22:17:03 -0700
commita58b62b4a2b96c31b49338b262b609db746449e8 (patch)
treeb8549e279ee3b6dd34c461038f3e9f0e19fc7f33 /llvm/lib/Transforms/Utils/LowerInvoke.cpp
parent756ba3548cbeef6c18866914fa935ade8b3edf1c (diff)
downloadllvm-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/Transforms/Utils/LowerInvoke.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LowerInvoke.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerInvoke.cpp b/llvm/lib/Transforms/Utils/LowerInvoke.cpp
index 1af0ce3..0b225e8 100644
--- a/llvm/lib/Transforms/Utils/LowerInvoke.cpp
+++ b/llvm/lib/Transforms/Utils/LowerInvoke.cpp
@@ -53,7 +53,7 @@ static bool runImpl(Function &F) {
II->getOperandBundlesAsDefs(OpBundles);
// Insert a normal call instruction...
CallInst *NewCall =
- CallInst::Create(II->getFunctionType(), II->getCalledValue(),
+ CallInst::Create(II->getFunctionType(), II->getCalledOperand(),
CallArgs, OpBundles, "", II);
NewCall->takeName(II);
NewCall->setCallingConv(II->getCallingConv());