Subzero: Convert NULL->nullptr.
This is limited to the src directory, and not (yet) the crosstest directory.
BUG= none
R=jfb@chromium.org
Review URL: https://codereview.chromium.org/814353002
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp
index 42731ad..c542693 100644
--- a/src/IceCfgNode.cpp
+++ b/src/IceCfgNode.cpp
@@ -164,7 +164,7 @@
// Keep track of the dest variable of a compare instruction, so that
// we insert the new instruction at the SafeInsertionPoint if the
// compare's dest matches the Phi-lowered assignment's source.
- Variable *CmpInstDest = NULL;
+ Variable *CmpInstDest = nullptr;
// If the current insertion point is at a conditional branch
// instruction, and the previous instruction is a compare
// instruction, then we move the insertion point before the compare
@@ -553,8 +553,8 @@
bool CfgNode::liveness(Liveness *Liveness) {
SizeT NumVars = Liveness->getNumVarsInNode(this);
LivenessBV Live(NumVars);
- LiveBeginEndMap *LiveBegin = NULL;
- LiveBeginEndMap *LiveEnd = NULL;
+ LiveBeginEndMap *LiveBegin = nullptr;
+ LiveBeginEndMap *LiveEnd = nullptr;
// Mark the beginning and ending of each variable's live range
// with the sentinel instruction number 0.
if (Liveness->getMode() == Liveness_Intervals) {
@@ -723,7 +723,7 @@
void CfgNode::contractIfEmpty() {
if (InEdges.empty())
return;
- Inst *Branch = NULL;
+ Inst *Branch = nullptr;
for (auto I = Insts.begin(), E = Insts.end(); I != E; ++I) {
if (I->isDeleted())
continue;