Fix small bug in handling instructions with more than one implicitly defined operand.
[oota-llvm.git] / lib / CodeGen / ProcessImplicitDefs.cpp
index a00f4507af0819ee3ec1e73721881f0ff5ae5de1..a0a781bf08a2fb2a31675a62fb32f9de2828b197 100644 (file)
@@ -264,8 +264,8 @@ bool ProcessImplicitDefs::runOnMachineFunction(MachineFunction &fn) {
         }
       }
       RUses.clear();
+      ModInsts.clear();
     }
-    ModInsts.clear();
     ImpDefRegs.clear();
     ImpDefMIs.clear();
   }