[LLVMbugs] [Bug 24082] New: Kaleidoscope tutorial Chapter 4 code does not compile

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 10 07:54:02 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24082

            Bug ID: 24082
           Summary: Kaleidoscope tutorial Chapter 4 code does not compile
           Product: Documentation
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
          Assignee: unassignedbugs at nondot.org
          Reporter: fredrik.ronquist at nrm.se
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14573
  --> https://llvm.org/bugs/attachment.cgi?id=14573&action=edit
Corrected Chapter 4 code.

The Kaleidoscope Chapter 4 code appears to be wrong. It does not compile in its
present form and it contains a section of code that is not present in later
chapters, with an ominous "FIX ME" comment inserted at the top.

The problem applies to both the toy.cpp file in
llvm/examples/Kaleidoscope/Chapter4/ and the corresponding code listing on the
documentation web site.

It seems like this is legacy code that has been fixed in Chapter 5 and later
chapters but not yet in Chapter 4. I attach a new version of the Chapter 4 code
that I fixed by deleting the erroneous code and instead inserting code from
Chapter 5 related to the content in Chapter 4. The attached Chapter 4 code
compiles and runs. It seems to do the right thing but I have not tested it
extensively and I am new to LLVM so someone more familiar with the LLVM
infrastructure should check it before it is committed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150710/428da8bd/attachment.html>


More information about the llvm-bugs mailing list