Skip to content
Snippets Groups Projects
Commit 5d87b9d2 authored by Akash Kothari's avatar Akash Kothari :speech_balloon:
Browse files

Fixing the argument size getter in loop

parent 12147630
No related branches found
No related tags found
No related merge requests found
......@@ -525,7 +525,7 @@ static Function* genInternalNode(Function* KernelF, unsigned level,
// Generate Bind intrinsics
Function* bindInputF = Intrinsic::getDeclaration(module, Intrinsic::visc_bind_input);
DEBUG(errs() << "Generating input binding:\n" << *bindInputF << "\n");
for(unsigned i=0; i < ChildNodeF->getArgumentList().size(); i++) {
for(unsigned i=0; i < ChildNodeF->arg_size(); i++) {
std::vector<Value*> bindArgs;
bindArgs.push_back(CreateNodeCall);
bindArgs.push_back(ConstantInt::get(Type::getInt32Ty(module->getContext()), i));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment