[LLVMbugs] [Bug 6040] New: error: invalid redefinition of function 'free'

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 14 08:58:35 PST 2010


           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: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu

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.

More information about the llvm-bugs mailing list