diff --git a/lib/CodeGen/LiveRangeCalc.cpp b/lib/CodeGen/LiveRangeCalc.cpp index 21eaa15d012..eedf924388e 100644 --- a/lib/CodeGen/LiveRangeCalc.cpp +++ b/lib/CodeGen/LiveRangeCalc.cpp @@ -47,7 +47,7 @@ void LiveRangeCalc::updateLiveIns(VNInfo *OverrideVNI, SlotIndexes *Indexes) { // The value is live-through, update LiveOut as well. Defer the Domtree // lookup until it is needed. assert(Seen.test(MBB->getNumber())); - LiveOut[MBB] = LiveOutPair(VNI, 0); + LiveOut[MBB] = LiveOutPair(VNI, (MachineDomTreeNode *)0); } } LiveIn.clear(); diff --git a/lib/CodeGen/LiveRangeCalc.h b/lib/CodeGen/LiveRangeCalc.h index 55e67bb1445..b8c8585846f 100644 --- a/lib/CodeGen/LiveRangeCalc.h +++ b/lib/CodeGen/LiveRangeCalc.h @@ -191,7 +191,7 @@ public: /// addLiveInBlock(). void setLiveOutValue(MachineBasicBlock *MBB, VNInfo *VNI) { Seen.set(MBB->getNumber()); - LiveOut[MBB] = LiveOutPair(VNI, 0); + LiveOut[MBB] = LiveOutPair(VNI, (MachineDomTreeNode *)0); } /// addLiveInBlock - Add a block with an unknown live-in value. This