llvm.org GIT mirror llvm / f1adbfe
Fix issue with invalid flat operand number Avoid iterating over list of operands beyond the number of operands in it. PS: this fixes issue with revision #167634. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167635 91177308-0d34-0410-b5e6-96231b3b80d8 Evandro Menezes 8 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
139139 while (NumberedOp < NumberOps &&
140140 CGI.Operands.isFlatOperandNotEmitted(NumberedOp))
141141 ++NumberedOp;
142 // If this operand has not been found, ignore it.
143 if (NumberedOp >= NumberOps)
144 return;
142
145143 OpIdx = NumberedOp++;
146144 }
147145