mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
[C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -129,7 +129,7 @@ public:
|
||||
|
||||
// Find pass that is implementing PI.
|
||||
Pass *findImplPass(AnalysisID PI) {
|
||||
Pass *ResultPass = 0;
|
||||
Pass *ResultPass = nullptr;
|
||||
for (unsigned i = 0; i < AnalysisImpls.size() ; ++i) {
|
||||
if (AnalysisImpls[i].first == PI) {
|
||||
ResultPass = AnalysisImpls[i].second;
|
||||
@ -182,7 +182,7 @@ AnalysisType *Pass::getAnalysisIfAvailable() const {
|
||||
const void *PI = &AnalysisType::ID;
|
||||
|
||||
Pass *ResultPass = Resolver->getAnalysisIfAvailable(PI, true);
|
||||
if (ResultPass == 0) return 0;
|
||||
if (!ResultPass) return 0;
|
||||
|
||||
// Because the AnalysisType may not be a subclass of pass (for
|
||||
// AnalysisGroups), we use getAdjustedAnalysisPointer here to potentially
|
||||
|
Reference in New Issue
Block a user