mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -92,7 +92,7 @@ class LiveRangeCalc {
|
||||
VNInfo *Value;
|
||||
|
||||
LiveInBlock(LiveRange &LR, MachineDomTreeNode *node, SlotIndex kill)
|
||||
: LR(LR), DomNode(node), Kill(kill), Value(0) {}
|
||||
: LR(LR), DomNode(node), Kill(kill), Value(nullptr) {}
|
||||
};
|
||||
|
||||
/// LiveIn - Work list of blocks where the live-in value has yet to be
|
||||
@@ -125,7 +125,8 @@ class LiveRangeCalc {
|
||||
void updateLiveIns();
|
||||
|
||||
public:
|
||||
LiveRangeCalc() : MF(0), MRI(0), Indexes(0), DomTree(0), Alloc(0) {}
|
||||
LiveRangeCalc() : MF(nullptr), MRI(nullptr), Indexes(nullptr),
|
||||
DomTree(nullptr), Alloc(nullptr) {}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// High-level interface.
|
||||
@@ -203,7 +204,7 @@ public:
|
||||
/// addLiveInBlock().
|
||||
void setLiveOutValue(MachineBasicBlock *MBB, VNInfo *VNI) {
|
||||
Seen.set(MBB->getNumber());
|
||||
LiveOut[MBB] = LiveOutPair(VNI, (MachineDomTreeNode *)0);
|
||||
LiveOut[MBB] = LiveOutPair(VNI, nullptr);
|
||||
}
|
||||
|
||||
/// addLiveInBlock - Add a block with an unknown live-in value. This
|
||||
|
Reference in New Issue
Block a user