[llvm-dev] Converting i32** to [4 x i32]* ?

Siddharth Bhat via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 11 13:40:21 PDT 2017


Hello all,

This is a general question regarding type conversion:

from: <ty>**
to: [<size> x <ty>]*

>From what I understand, bitcast  is wrong in this case because a GEP into a
<ty>** should be computed differently from a GEP into [<size> x <ty>]*.

So, what is the correct way to perform this type conversion?

Thanks,
Siddharth

-- 
Sending this from my phone, please excuse any typos!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170811/528d0ee6/attachment.html>


More information about the llvm-dev mailing list