[LLVMdev] Pointer to String Constant

Nyx mcheva at cs.mcgill.ca
Thu Mar 4 17:56:35 PST 2010


>> It's hard to tell without more of the source code, but you probably need
something like:
>> getelementptr [6 x i8] * c"test\0A\00", i32 0, i32 0

Isn't that pretty much what I have? I'm doing a constant gep on the string
constant, which registers as an array of type [6 x i8], with two i32 0
indices. Note that I tried with a non-constant gep also, and it does the
same thing.


-- 
View this message in context: http://old.nabble.com/Pointer-to-String-Constant-tp27788693p27789107.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list