[LLVMbugs] [Bug 11958] New: Using functions with an incorrect type causes a segfault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 9 05:22:16 PST 2012


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

             Bug #: 11958
           Summary: Using functions with an incorrect type causes a
                    segfault
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: benner.colin+llvm at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8025
  --> http://llvm.org/bugs/attachment.cgi?id=8025
output produced by llc

Trying to compile

define void @g() {
;    %a = ptrtoint void()* @f to i64
    %b = ptrtoint i64* @f to i64
    ret void
}
declare void @f()

with llc produces the attached stack dump.  Both uncommenting the second line
and moving the declaration of @f to the top prevents the problem.

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