File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1010
1111#include " llvm/ADT/StringRef.h"
1212#include " llvm/IR/BasicBlock.h"
13- #include " llvm/IR/CallSite.h"
1413#include " llvm/IR/Constants.h"
1514#include " llvm/IR/Function.h"
1615#include " llvm/IR/Instruction.h"
@@ -158,12 +157,11 @@ bool fixupX86StructRetCalls(llvm::Module &module) {
158157 assert (new_func_type &&
159158 " failed to clone functionType for Renderscript ABI fixup" );
160159
161- llvm::CallSite call_site (call_inst);
162160 llvm::Function *func = call_inst->getCalledFunction ();
163161 assert (func && " cannot resolve function in RenderScriptRuntime" );
164162 // Copy the original call arguments
165- std::vector<llvm::Value *> new_call_args (call_site. arg_begin (),
166- call_site. arg_end ());
163+ std::vector<llvm::Value *> new_call_args (call_inst-> arg_begin (),
164+ call_inst-> arg_end ());
167165
168166 // Allocate enough space to store the return value of the original function
169167 // we pass a pointer to this allocation as the StructRet param, and then
You can’t perform that action at this time.
0 commit comments