http://llvm.org/bugs/show_bug.cgi?id=4207
Summary: TableGen Cannot Slice List Arguments
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: TableGen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The attached seemingly trivial testcase crashes TableGen with:
tblgen:
/ptmp/dag/llvm-project.modified/llvm/trunk/utils/TableGen/Record.cpp:642:
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs