diff options
author | Mircea Trofin <mtrofin@google.com> | 2020-04-14 12:33:49 -0700 |
---|---|---|
committer | Mircea Trofin <mtrofin@google.com> | 2020-04-14 14:49:47 -0700 |
commit | 447e2c30675416611f790eb2ea3ced47203b6b07 (patch) | |
tree | 5bd3fec19c18be8e9bc5f6c5c9564fc18357fb6f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | cc220d40315be9512a7fda369811c4714cc8fdfb (diff) | |
download | llvm-447e2c30675416611f790eb2ea3ced47203b6b07.zip llvm-447e2c30675416611f790eb2ea3ced47203b6b07.tar.gz llvm-447e2c30675416611f790eb2ea3ced47203b6b07.tar.bz2 |
[llvm][NFC][CallSite] Remove Implementation uses of CallSite
Reviewers: dblaikie, davidxl, craig.topper
Subscribers: arsenm, dschuff, nemanjai, jvesely, nhaehnle, sbc100, jgravelle-google, hiraditya, aheejin, kbarton, kerbowa, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D78142
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 153388b..8f7f980 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -27,7 +27,6 @@ #include "llvm/IR/Attributes.h" #include "llvm/IR/AutoUpgrade.h" #include "llvm/IR/BasicBlock.h" -#include "llvm/IR/CallSite.h" #include "llvm/IR/CallingConv.h" #include "llvm/IR/Comdat.h" #include "llvm/IR/Constant.h" @@ -5312,7 +5311,7 @@ Error BitcodeReader::materialize(GlobalValue *GV) { for (auto UI = I.first->materialized_user_begin(), UE = I.first->user_end(); UI != UE;) // Don't expect any other users than call sites - CallSite(*UI++).setCalledFunction(I.second); + cast<CallBase>(*UI++)->setCalledFunction(I.second); // Finish fn->subprogram upgrade for materialized functions. if (DISubprogram *SP = MDLoader->lookupSubprogramForFunction(F)) |