diff options
Diffstat (limited to 'lib/Target/ARM64/ARM64AddressTypePromotion.cpp')
-rw-r--r-- | lib/Target/ARM64/ARM64AddressTypePromotion.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/ARM64/ARM64AddressTypePromotion.cpp b/lib/Target/ARM64/ARM64AddressTypePromotion.cpp index b34a81081f..c6e45def9a 100644 --- a/lib/Target/ARM64/ARM64AddressTypePromotion.cpp +++ b/lib/Target/ARM64/ARM64AddressTypePromotion.cpp @@ -71,7 +71,7 @@ class ARM64AddressTypePromotion : public FunctionPass { public: static char ID; ARM64AddressTypePromotion() - : FunctionPass(ID), Func(NULL), ConsideredSExtType(NULL) { + : FunctionPass(ID), Func(nullptr), ConsideredSExtType(nullptr) { initializeARM64AddressTypePromotionPass(*PassRegistry::getPassRegistry()); } @@ -344,7 +344,7 @@ ARM64AddressTypePromotion::propagateSignExtension(Instructions &SExtInsts) { SExtForOpnd->moveBefore(Inst); Inst->setOperand(OpIdx, SExtForOpnd); // If more sext are required, new instructions will have to be created. - SExtForOpnd = NULL; + SExtForOpnd = nullptr; } if (SExtForOpnd == SExt) { DEBUG(dbgs() << "Sign extension is useless now\n"); @@ -466,10 +466,10 @@ void ARM64AddressTypePromotion::analyzeSExtension(Instructions &SExtInsts) { if (insert || AlreadySeen != SeenChains.end()) { DEBUG(dbgs() << "Insert\n"); SExtInsts.push_back(SExt); - if (AlreadySeen != SeenChains.end() && AlreadySeen->second != NULL) { + if (AlreadySeen != SeenChains.end() && AlreadySeen->second != nullptr) { DEBUG(dbgs() << "Insert chain member\n"); SExtInsts.push_back(AlreadySeen->second); - SeenChains[Last] = NULL; + SeenChains[Last] = nullptr; } } else { DEBUG(dbgs() << "Record its chain membership\n"); |