Hi
I am trying to create a local static void* array in CodeGenFunction::StartFunction(). I think I can do it by calling: VarDecl::Create(). But I am little confused with the required passing argument for what kind of variable I want to create. I have currently following:
Note: the ? I have failed to understand what should be.
`
std::string VarName = "__void_p_local_static_array";
IdentifierInfo &NameIdent = getContext().Idents.get(VarName);
auto *defaultVarDecl = VarDecl::Create(getContext(), ?,?, ?,
&NameIdent,?, (TypeSourceInfo *)0, SC_Static);
`