[LLVMdev] Taking the address of an array?

Óscar Fuentes ofv at wanadoo.es
Fri Feb 12 18:25:28 PST 2010


Patrick Alexander Simmons <simmon12 at cs.uiuc.edu> writes:

> I read this before posting; however, that article says that the first 
> operand to this instruction must be a pointer type.  The type I have is 
> [16 x i8*], not [16 x i8*]*.

Sorry, I read your question too quickly. What you actually need is to
`alloca' space for the array, which will give you the [16 x i8*]*,
`store' your register there, and either `bitcast' the [16 x i8*]*
pointer to i8** or use `getelementptr'.




More information about the llvm-dev mailing list