Commit 1bd0ee93 authored by Brice Videau's avatar Brice Videau
Browse files

Force errcode_ret to have a value so error code can be displayed even if the...

Force errcode_ret to have a value so error code can be displayed even if the user did not pass a pointer.
parent 5a15fd10
Pipeline #12782 failed with stage
......@@ -612,7 +612,7 @@ class TracepointParameter
end
end
ErrCodeRet = AutoOutScalar::create("errcode_ret")
ErrCodeRet = AutoOutScalar::create("errcode_ret", nocheck: true)
ParamValueSizeRet = AutoOutScalar::create("param_value_size_ret", nocheck: true)
......@@ -753,6 +753,16 @@ OPENCL_POINTER_NAMES = ($opencl_commands.collect { |c|
[c, c.prototype.pointer_name]
}).to_h
($opencl_commands+$opencl_extension_commands).select { |c|
c.parameters.find { |p| p.name == "errcode_ret" && p.pointer? }
}.each { |c|
c.prologues.push <<EOF
cl_int _errcode_ret_force;
if (!errcode_ret)
errcode_ret = &_errcode_ret_force;
EOF
}
($opencl_commands+$opencl_extension_commands).select { |c|
c.parameters.find { |p| p.name == "param_value_size_ret" && p.pointer? }
}.each { |c|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment