mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
simplify by using CallSite constructors; virtually eliminates CallSite::get from the tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,8 +42,8 @@ namespace {
|
||||
Instruction *User = dyn_cast<Instruction>(*UI);
|
||||
if (!User) continue;
|
||||
|
||||
CallSite CS = CallSite::get(User);
|
||||
if (!CS.getInstruction()) continue;
|
||||
CallSite CS(cast<Value>(User));
|
||||
if (!CS) continue;
|
||||
|
||||
for (CallSite::arg_iterator AI = CS.arg_begin(),
|
||||
E = CS.arg_end(); AI != E; ++AI) {
|
||||
|
||||
Reference in New Issue
Block a user