mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
[C++] Use 'nullptr'. Tools edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207176 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -63,7 +63,7 @@ ReducePassList::doTest(std::vector<std::string> &Prefix,
|
||||
std::vector<std::string> &Suffix,
|
||||
std::string &Error) {
|
||||
std::string PrefixOutput;
|
||||
Module *OrigProgram = 0;
|
||||
Module *OrigProgram = nullptr;
|
||||
if (!Prefix.empty()) {
|
||||
outs() << "Checking to see if these passes crash: "
|
||||
<< getPassesString(Prefix) << ": ";
|
||||
@@ -73,7 +73,7 @@ ReducePassList::doTest(std::vector<std::string> &Prefix,
|
||||
OrigProgram = BD.Program;
|
||||
|
||||
BD.Program = ParseInputFile(PrefixOutput, BD.getContext());
|
||||
if (BD.Program == 0) {
|
||||
if (BD.Program == nullptr) {
|
||||
errs() << BD.getToolName() << ": Error reading bitcode file '"
|
||||
<< PrefixOutput << "'!\n";
|
||||
exit(1);
|
||||
@@ -149,7 +149,7 @@ ReduceCrashingGlobalVariables::TestGlobalVariables(
|
||||
for (Module::global_iterator I = M->global_begin(), E = M->global_end();
|
||||
I != E; ++I)
|
||||
if (I->hasInitializer() && !GVSet.count(I)) {
|
||||
I->setInitializer(0);
|
||||
I->setInitializer(nullptr);
|
||||
I->setLinkage(GlobalValue::ExternalLinkage);
|
||||
}
|
||||
|
||||
@@ -447,7 +447,7 @@ static bool DebugACrash(BugDriver &BD,
|
||||
for (Module::global_iterator I = M->global_begin(), E = M->global_end();
|
||||
I != E; ++I)
|
||||
if (I->hasInitializer()) {
|
||||
I->setInitializer(0);
|
||||
I->setInitializer(nullptr);
|
||||
I->setLinkage(GlobalValue::ExternalLinkage);
|
||||
DeletedInit = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user