mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
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. llvm-svn: 167635
This commit is contained in:
parent
065305e336
commit
3163eb097c
@ -140,9 +140,7 @@ AddCodeToMergeInOperand(Record *R, BitsInit *BI, const std::string &VarName,
|
||||
while (NumberedOp < NumberOps &&
|
||||
CGI.Operands.isFlatOperandNotEmitted(NumberedOp))
|
||||
++NumberedOp;
|
||||
// If this operand has not been found, ignore it.
|
||||
if (NumberedOp >= NumberOps)
|
||||
return;
|
||||
|
||||
OpIdx = NumberedOp++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user