<div dir="ltr">+Lang who does JIT things<br><br>Yeah, I can confirm my local build (using LLVM source from today) of Chapter 4 behaves as you describe, and not as the documentation shows. Looks like somethnig needs updating (either source or the documentation).<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 30, 2018 at 3:28 PM Nick Desaulniers via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><a href="https://llvm.org/docs/tutorial/LangImpl04.html" rel="noreferrer" target="_blank">https://llvm.org/docs/tutorial/LangImpl04.html</a> has an example where<br>
the function `foo` gets redefined, and the JIT returns evaluation of<br>
the latest definition.  I thought my code was wrong, but it seems that<br>
the binary produced by `ninja Kaleidoscope-Ch4` has the same bug.<br>
<br>
Granted, my LLVM checkout is from Nov 3 2018 (r346062).  Is this a known issue?<br>
~Nick Desaulniers<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>