[llvm] r277924 - [ARM] Don't copy MCInsts in loop. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 6 05:58:25 PDT 2016
Author: d0k
Date: Sat Aug 6 07:58:24 2016
New Revision: 277924
URL: http://llvm.org/viewvc/llvm-project?rev=277924&view=rev
Log:
[ARM] Don't copy MCInsts in loop. NFC.
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=277924&r1=277923&r2=277924&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Sat Aug 6 07:58:24 2016
@@ -214,7 +214,7 @@ class ARMAsmParser : public MCTargetAsmP
// Emit the conditonal instructions
assert(PendingConditionalInsts.size() <= 4);
- for (MCInst Inst : PendingConditionalInsts) {
+ for (const MCInst &Inst : PendingConditionalInsts) {
Out.EmitInstruction(Inst, getSTI());
}
PendingConditionalInsts.clear();
More information about the llvm-commits
mailing list