[LLVMbugs] [Bug 16289] New: MCJIT::getPointerToFunction cause an assertion when function name is empty.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 10 01:27:07 PDT 2013


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

            Bug ID: 16289
           Summary: MCJIT::getPointerToFunction cause an assertion when
                    function name is empty.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Generic Execution Engine Support
          Assignee: unassignedbugs at nondot.org
          Reporter: dmitri.rubinstein at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Following code in MCJIT::getPointerToFunction will fail when function name is
empty:

  StringRef BaseName = F->getName();
  if (BaseName[0] == '\1')
    ...

At least Kaleidoscope example uses empty function names for temporary
functions.

-- 
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/20130610/329f90b5/attachment.html>


More information about the llvm-bugs mailing list