Commit: 11bbcce92997c2401b0857d1f18212552e3f0038
Author: Lukas Tönne
Date:   Thu Jun 23 18:36:10 2016 +0200
Branches: object_nodes
https://developer.blender.org/rB11bbcce92997c2401b0857d1f18212552e3f0038

Fix for graph function signature: use pointers also for aggregate and struct 
types.

===================================================================

M       source/blender/blenvm/llvm/llvm_codegen.cc

===================================================================

diff --git a/source/blender/blenvm/llvm/llvm_codegen.cc 
b/source/blender/blenvm/llvm/llvm_codegen.cc
index 159cc1b..be881c9 100644
--- a/source/blender/blenvm/llvm/llvm_codegen.cc
+++ b/source/blender/blenvm/llvm/llvm_codegen.cc
@@ -420,7 +420,7 @@ static void append_graph_input_args(llvm::LLVMContext 
&context,
        
        const TypeSpec *spec = input->typedesc.get_typespec();
        llvm::Type *type = bvm_get_llvm_type(context, spec, true);
-       if (bvm_type_has_dual_value(spec))
+       if (bvm_type_has_dual_value(spec) || spec->is_aggregate() || 
spec->is_structure())
                type = type->getPointerTo();
        
        arg_types.push_back(type);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to