[Bf-blender-cvs] [11bbcce] object_nodes: Fix for graph function signature: use pointers also for aggregate and struct types.
Lukas Tönne
noreply at git.blender.org
Fri Jun 24 10:24:26 CEST 2016
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);
More information about the Bf-blender-cvs
mailing list