[LLVMbugs] [Bug 10316] New: Incorrect function calls in the tutorials for building the fadd, fmul, and fsub operations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 9 08:57:35 PDT 2011


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

           Summary: Incorrect function calls in the tutorials for building
                    the fadd, fmul, and fsub operations
           Product: Documentation
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: General docs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: damien.schoof at gmail.com
                CC: llvmbugs at cs.uiuc.edu
        Depends on: 10016,10025


Created an attachment (id=6863)
 --> (http://llvm.org/bugs/attachment.cgi?id=6863)
Calls the correct functions to build arithmetic operators

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

In the Kaleidoscope tutorials, Codegen.ml specifies that creating the add, sub
and mul operators involves a call to build_add, build_sub, and build_mul.
However, the language being created only has a double type, and therefore the
above functions do not work correctly.  There is no useful error message for
this, and therefore it is not possible to tell what is going wrong.

I have created a patch for this, which uses the correct function call in the
tutorial.

-- 
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