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

           Summary: error: invalid redefinition of function 'free'
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM assembly language parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The following IR doesn't parse:

  define void @foo(i8* %x) {
    free i8* %x
    ret void
  }

  define void @free(i8*) nounwind {
    ret void
  }

but it would if you removed the call to free in @foo, or if you put @free
before @foo. The error is:

llvm-as: <stdin>:6:15: error: invalid redefinition of function 'free'
  define void @free(i8*) nounwind {


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

Reply via email to