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

Evandro Menezes emenezes at codeaurora.org
Wed Nov 7 12:30:30 PST 2012


On 11/07/12 13:05, Bill Wendling wrote:
> You shouldn't be recalculating the size of 'CGI.Operands' for each 
> iteration of the loop. I'm also concerned about that value of 
> NumberedOp once this returns. How does it being '>= CGI.Operands' 
> affect the caller of this method? -bw 

I can cache the size of CGI.Operands.

This method is private and its only caller ignores the result of 
NumberedOp.  However, in my reading of it, its purpose is to count the 
number of matched operands, so the cap seems legit.

-- 
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: 849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121107/91e5bf66/attachment.bin>


More information about the llvm-commits mailing list