mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Be careful not to walk off the end of the operand info list while updating VFP predicates.
llvm-svn: 138492
This commit is contained in:
parent
b2b155a93f
commit
3732f1644b
@ -417,7 +417,8 @@ void ThumbDisassembler::UpdateThumbVFPPredicate(MCInst &MI) const {
|
||||
|
||||
const MCOperandInfo *OpInfo = ARMInsts[MI.getOpcode()].OpInfo;
|
||||
MCInst::iterator I = MI.begin();
|
||||
for (unsigned i = 0, e = MI.size(); i < e; ++i, ++I) {
|
||||
unsigned short NumOps = ARMInsts[MI.getOpcode()].NumOperands;
|
||||
for (unsigned i = 0; i < NumOps; ++i, ++I) {
|
||||
if (OpInfo[i].isPredicate() ) {
|
||||
I->setImm(CC);
|
||||
++I;
|
||||
|
Loading…
Reference in New Issue
Block a user