diff --git a/lib/CodeGen/VirtRegRewriter.cpp b/lib/CodeGen/VirtRegRewriter.cpp index 2213c65f343..abaa8bd212e 100644 --- a/lib/CodeGen/VirtRegRewriter.cpp +++ b/lib/CodeGen/VirtRegRewriter.cpp @@ -491,12 +491,10 @@ static void ReMaterialize(MachineBasicBlock &MBB, const TargetRegisterInfo *TRI, VirtRegMap &VRM) { MachineInstr *ReMatDefMI = VRM.getReMaterializedMI(Reg); -#if 0 #ifndef NDEBUG const TargetInstrDesc &TID = ReMatDefMI->getDesc(); - assert(TID.getNumDefs() != 1 && + assert(TID.getNumDefs() == 1 && "Don't know how to remat instructions that define > 1 values!"); -#endif #endif TII->reMaterialize(MBB, MII, DestReg, ReMatDefMI->getOperand(0).getSubReg(), ReMatDefMI);