Skip to content

Commit

Permalink
Fix indexing.
Browse files Browse the repository at this point in the history
Signed-off-by: Curtis Black <[email protected]>
  • Loading branch information
curtisblack committed Aug 26, 2024
1 parent 3198006 commit 56153f2
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/liboslexec/llvm_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3970,15 +3970,11 @@ LLVMGEN(llvm_gen_pointcloud_search)
}
} else {
// It is a regular attribute, push it to the arg list
llvm::Value* write_args[] = {
rop.ll.void_ptr(names),
rop.ll.void_ptr(types),
rop.ll.void_ptr(values),
rop.ll.constant(i),
rop.llvm_load_value(Name), // name[i]
rop.ll.constant(simpletype), // type[i]
rop.llvm_void_ptr(Value) // value[i]
};
llvm::Value* write_args[]
= { rop.ll.void_ptr(names), rop.ll.void_ptr(types),
rop.ll.void_ptr(values), rop.ll.constant(extra_attrs),
rop.llvm_load_value(Name), rop.ll.constant(simpletype),
rop.llvm_void_ptr(Value) };
rop.ll.call_function("osl_pointcloud_write_helper", write_args);
if (Value.has_derivs())
clear_derivs_of.push_back(&Value);
Expand Down

0 comments on commit 56153f2

Please sign in to comment.