[X86] Use range-based for loop. NFC

llvm-svn: 260942
This commit is contained in:
Craig Topper 2016-02-16 07:45:04 +00:00
parent 6b16c2372c
commit 16d7eb26ea
1 changed files with 2 additions and 3 deletions

View File

@ -1115,9 +1115,8 @@ bool X86AsmParser::VerifyAndAdjustOperands(OperandVector &OrigOperands,
// Produce warnings only if all the operands passed the adjustment - prevent
// legal cases like "movsd (%rax), %xmm0" mistakenly produce warnings
for (auto WarningMsg = Warnings.begin(); WarningMsg < Warnings.end();
++WarningMsg) {
Warning((*WarningMsg).first, (*WarningMsg).second);
for (auto &WarningMsg : Warnings) {
Warning(WarningMsg.first, WarningMsg.second);
}
// Remove old operands