<div dir="auto">Thanks Tim,<div dir="auto">I'll try tonight to do so and see if I can make it work.</div><div dir="auto"><br></div><div dir="auto">Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 18, 2019, 09:11 Tim Northover <<a href="mailto:t.p.northover@gmail.com">t.p.northover@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 17 Jul 2019 at 20:44, Alberto Barbaro via llvm-dev<br>
<<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" rel="noreferrer">llvm-dev@lists.llvm.org</a>> wrote:<br>
> I think this should not be the case considering that Type I think is a Vector.<br>
<br>
But from your own code:<br>
<br>
> source->getPointerOperand()->getType()->dump(); //[40 x i8]*<br>
<br>
[40 x i8]* is a pointer to an array. LoadValueFromMemory doesn't seem<br>
to support loading an array type directly, so you either have to load<br>
all bytes individually or use "(char *) Ptr->PointerVal". At least it<br>
looks like that second one ought to work from the implementation of<br>
LoadValueFromMemory.<br>
<br>
Cheers.<br>
<br>
Tim.<br>
</blockquote></div>