Use unique_ptr for the result of Registry entries.
[oota-llvm.git] / lib / CodeGen / RegAllocBase.cpp
index 33584f868060f1e82b0f3d1024369b2e0d161886..bd9b1ab4c5c375b8d7044cb03aa76e0b3d4f49f6 100644 (file)
@@ -110,7 +110,7 @@ void RegAllocBase::allocatePhysRegs() {
     if (AvailablePhysReg == ~0u) {
       // selectOrSplit failed to find a register!
       // Probably caused by an inline asm.
-      MachineInstr *MI = 0;
+      MachineInstr *MI = nullptr;
       for (MachineRegisterInfo::reg_instr_iterator
            I = MRI->reg_instr_begin(VirtReg->reg), E = MRI->reg_instr_end();
            I != E; ) {