<div dir="ltr">So, it's a bit late, but why *exactly* is it better to use an offset than a constant GEP?<div><br></div><div>I remember asking this question before, but I don't remember the answer.  I can't find it in my inbox either.<div class="gmail_extra">
<br><div class="gmail_quote">On Tue, May 20, 2014 at 3:28 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> I think you should explicitly state that the offset is in bytes.<br>
<br>
</div>Good idea. Fixed.<br>
<div><br>
>> +  const APSInt &Val = Lex.getAPSIntVal();<br>
>> +  if (Val.getBitWidth() > 64)<br>
>> +    return TokError("expected a 64 bit unsegned integer");<br>
><br>
> s/unsegned/unsigned<br>
<br>
</div>Oh, on the current patch the offset is signed. I just forgot to update<br>
the error message. I fixed it in the attached version.<br>
<br>
Thanks,<br>
Rafael<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div></div></div>