[C++] Use 'nullptr'. Target edition.
[oota-llvm.git] / lib / Target / Mips / MipsLongBranch.cpp
index e028994876f583ea23a4d955b283369f16b2bb0f..e9514c3b20dafda4a750accfe5d8e8e0ade857ed 100644 (file)
@@ -56,7 +56,7 @@ namespace {
     bool HasLongBranch;
     MachineInstr *Br;
 
-    MBBInfo() : Size(0), HasLongBranch(false), Br(0) {}
+    MBBInfo() : Size(0), HasLongBranch(false), Br(nullptr) {}
   };
 
   class MipsLongBranch : public MachineFunctionPass {
@@ -111,7 +111,7 @@ static MachineBasicBlock *getTargetMBB(const MachineInstr &Br) {
   }
 
   assert(false && "This instruction does not have an MBB operand.");
-  return 0;
+  return nullptr;
 }
 
 // Traverse the list of instructions backwards until a non-debug instruction is