mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +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@206243 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -210,7 +210,7 @@ namespace llvm {
|
||||
void deleted() override;
|
||||
void allUsesReplacedWith(Value *New) override;
|
||||
public:
|
||||
SCEVCallbackVH(Value *V, ScalarEvolution *SE = 0);
|
||||
SCEVCallbackVH(Value *V, ScalarEvolution *SE = nullptr);
|
||||
};
|
||||
|
||||
friend class SCEVCallbackVH;
|
||||
@@ -291,7 +291,7 @@ namespace llvm {
|
||||
const SCEV *ExactNotTaken;
|
||||
PointerIntPair<ExitNotTakenInfo*, 1> NextExit;
|
||||
|
||||
ExitNotTakenInfo() : ExitingBlock(0), ExactNotTaken(0) {}
|
||||
ExitNotTakenInfo() : ExitingBlock(nullptr), ExactNotTaken(nullptr) {}
|
||||
|
||||
/// isCompleteList - Return true if all loop exits are computable.
|
||||
bool isCompleteList() const {
|
||||
@@ -321,7 +321,7 @@ namespace llvm {
|
||||
const SCEV *Max;
|
||||
|
||||
public:
|
||||
BackedgeTakenInfo() : Max(0) {}
|
||||
BackedgeTakenInfo() : Max(nullptr) {}
|
||||
|
||||
/// Initialize BackedgeTakenInfo from a list of exact exit counts.
|
||||
BackedgeTakenInfo(
|
||||
@@ -897,7 +897,7 @@ namespace llvm {
|
||||
bool runOnFunction(Function &F) override;
|
||||
void releaseMemory() override;
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override;
|
||||
void print(raw_ostream &OS, const Module* = 0) const override;
|
||||
void print(raw_ostream &OS, const Module* = nullptr) const override;
|
||||
void verifyAnalysis() const override;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user