[LLVMdev] creating pointer type

shreyas krishnan shreyas76 at gmail.com
Tue Jun 1 19:53:00 PDT 2010

   I need to create a pointer type to a global array which is

@buf  = internal constant [4 x i32] zeroinitializer ; <[4 x i32]*> [#uses=0]

if I just dyncast it, the element type of the resultant pointer type
is not set properly.

The getUnqual method gives me a double pointer.

thanks for the help !

More information about the llvm-dev mailing list