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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to