aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2020-04-28 14:50:06 -0700
committerMircea Trofin <mtrofin@google.com>2020-04-29 08:42:32 -0700
commite61247c0a8e1ff784c231317d00528a4d497ce9c (patch)
tree35b8b7a631fadb2c0fbcb8131d1c292990fcb424 /llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
parent51a60ed14c4eb70ca8ca616280ae9d97e7eb9986 (diff)
downloadllvm-e61247c0a8e1ff784c231317d00528a4d497ce9c.zip
llvm-e61247c0a8e1ff784c231317d00528a4d497ce9c.tar.gz
llvm-e61247c0a8e1ff784c231317d00528a4d497ce9c.tar.bz2
[llvm][NFC] Change parameter type to more specific CallBase in IndirectCallPromotion
Reviewers: dblaikie, craig.topper, wmi Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79047
Diffstat (limited to 'llvm/lib/Transforms/Utils/CallPromotionUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CallPromotionUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
index 150c355..ac61603 100644
--- a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
+++ b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
@@ -317,7 +317,7 @@ static CallBase &versionCallSite(CallBase &CB, Value *Callee,
return *NewInst;
}
-bool llvm::isLegalToPromote(CallBase &CB, Function *Callee,
+bool llvm::isLegalToPromote(const CallBase &CB, Function *Callee,
const char **FailureReason) {
assert(!CB.getCalledFunction() && "Only indirect call sites can be promoted");