[llvm-commits] [TableGen] Invalid flat operand number

Evandro Menezes emenezes at codeaurora.org
Wed Nov 7 09:17:37 PST 2012


I came across an issue in TableGen when working on adding opcodes to the 
Hexagon insn tables:

llvm-tblgen: utils/TableGen/CodeGenInstruction.h:180: std::pair<unsigned int, unsigned int> llvm::CGIOperandList::getSubOperandNumber(unsigned int) const: Assertion `i < OperandList.size() && "Invalid flat operand #"' failed.

The problem is that higher up a list of operands is iterated over 
without regard to the number of operands in it, which this patch tries 
to address.

Does it look good to you?

-- 
Evandro Menezes          Austin, TX          emenezes at codeaurora.org
Qualcomm Innovation Center, Inc is a member of the Code Aurora Forum

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CodeEmitterGen.diff
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121107/72e2d24a/attachment.bin>


More information about the llvm-commits mailing list