[LLVMbugs] [Bug 4207] New: TableGen Cannot Slice List Arguments

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue May 12 15:51:17 PDT 2009


           Summary: TableGen Cannot Slice List Arguments
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: TableGen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: greened at obbligato.org
                CC: llvmbugs at cs.uiuc.edu

The attached seemingly trivial testcase crashes TableGen with:

virtual llvm::Init* llvm::VarInit::resolveListElementReference(llvm::Record&,
const llvm::RecordVal*, unsigned int): Assertion `LI && "Invalid list
element!"' failed.

The problem appears to be that 'vals' is a VarInit in the BB context.

Taking out one layer of classes (e. g. having One and Two derive from BB) AND
commenting out the definition of BBB makes the problem go away.  Strangely,
leaving BBB defined causes the same crash even though it is referenced nowhere
and does not take any slices.

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