This should have been a reference
[oota-llvm.git] / lib / CodeGen / EarlyIfConversion.cpp
index 9950951376188ae453454d35d9bd65c5f1846a2e..d3687b98b34455c98bcd383b2867ab4ae2b7cbac 100644 (file)
@@ -226,7 +226,7 @@ bool SSAIfConv::canSpeculateInstrs(MachineBasicBlock *MBB) {
     }
 
     // Check for any dependencies on Head instructions.
-    for (const MachineOperand MO : I->operands()) {
+    for (const MachineOperand &MO : I->operands()) {
       if (MO.isRegMask()) {
         DEBUG(dbgs() << "Won't speculate regmask: " << *I);
         return false;