[LLVMbugs] [Bug 370] NEW: llvm-dis < bytecode | llvm-as fails: "Reference to an invalid definition"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jun 14 01:29:24 PDT 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=370

           Summary: llvm-dis < bytecode | llvm-as fails: "Reference to an
                    invalid definition"
           Product: tools
           Version: trunk
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gaeke+bugs at uiuc.edu


While working on the reoptimizer test framework I happened upon an llvm
bytecode file that I can't disassemble and reassemble successfully. I get the
following error:

216 kain> llvm-dis < lists.bc | llvm-as > sigh
llvm-as: <stdin>:441: Reference to an invalid definition: #6 of type ''

By the way, I don't think the error message type '' is correct.
I think it may be referencing the definition from main() marked below:

endif.8.i:      ; preds = %endif.7.i
    %tmp.2.i.i = load int* %tmp.83.i.i2099      ; <int> [#uses=1]
    cast %struct.DLL* %tmp.12.i.i.sub169 to sbyte*      ; <sbyte*>:4 [#uses=1]
    call void %free( sbyte* %4 )
    cast %struct.DLL* %tmp.2.i.i.sub21101 to sbyte*     ; <sbyte*>:5 [#uses=1]
    call void %free( sbyte* %5 )
    cast %struct.DLL* %1 to sbyte*      ; <sbyte*>:6 [#uses=1]  ** THIS ONE **
    call void %free( sbyte* %6 )
    br label %test_lists.entry

I will attach the bytecode to this bug.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list