[LLVMbugs] [Bug 10025] New: Missing line in OCaml Kaleidoscope tutorial Chapter 3

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 26 10:03:02 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10025

           Summary: Missing line in OCaml Kaleidoscope tutorial Chapter 3
           Product: Website
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Documentation
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: damien.schoof at gmail.com
                CC: llvmbugs at cs.uiuc.edu
        Depends on: 10016


+++ This bug was initially created as a clone of Bug #10016 +++

I've just been working through the Kaleidoscope tutorial online at
http://llvm.org/docs/tutorial/OCamlLangImpl3.html#basics and I've found a
missing line in the section about setting up.  The line has been merged into
the line below it, which is valid, but creates an error a few lines further
down.
The line of code (second code snippet of the section:

        let the_module = create_module (global_context ()) "my cool jit"

but should be:

        let context = global_context ()
        let the_module = create_module context "my cool jit"

found in lines 9 and 10 of codegen.ml.

All that is needed to fix this bug is to replace the line of code with the 2
above, as found in the example code.
This bug applies only to the OCaml version of the tutorial, the C++ version is
fine.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list