<div dir="ltr"><div><div><div>Thanks Tim,<br></div>I figure it out and successfully retrieved the base pointer and pass it to the function.<br><br></div>Thanks a lot <br><br></div>Bernard Nongpoh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 9, 2018 at 3:24 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bernard,<br>
<br>
On 9 January 2018 at 07:08, Bernard Nongpoh via llvm-dev<br>
<span class=""><<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
> Tried the above code but no luck ..<br>
<br>
</span>I'm afraid there's not enough context here to answer the question. The<br>
code you posted looks like it could work, but a lot would depend on<br>
the definitions you omitted: getElementPtrInst especially, though a<br>
dump of the whole Module as it exists when this code is executed would<br>
be even better.<br>
<br>
Knowing exactly what went wrong (error, assertion (which?), segfault,<br>
...) would also be very helpful.<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br></div>