Displaying 1 result from an estimated 1 matches for "d5289966".
Did you mean:
d52896
2017 Apr 08
2
Getting a pointer to a i8 from a global variable that holds a constant string
Hello,
I'm trying to get the pointer to the first element of a string (so that I
can pass it to a function).
The string itself is a constant kept in a global variable.
My end goal is to generate the IR for something like "puts("Hello World")";
I'm stuck on the parameter part of the call instruction.
So far I have something like this:
const std::string& str =