Hello,
I am writing the following statement to make a GIMPLE call:
tree function_fn_type = build_function_type_list(void_type_node,
void_type_node, integer_type_node, NULL_TREE);
tree sancov_fndecl = build_fn_decl("my_instrumentation_function",
function_fn_type);
auto gcall = gimple_build_call(sancov_fndecl, 2,
build_string_literal(3, "foo"), build_int_cst_type(integer_type_node, 0));
However, when executing the GIMPLE plugin, while inducing no internal
crash, the following function call statement is generated:
my_instrumentation_function (*&"foo"[0]*, 0);
The first argument seems really strange. Can I somewhat just put a "foo"
there instead of the current form? Thank you very much.
Best,
Shuai