================
@@ -243,9 +251,8 @@ bool CXXBasePaths::lookupInBases(ASTContext &Context,
         return FoundPath;
       }
     } else if (VisitBase) {
-      CXXRecordDecl *BaseRecord;
+      CXXRecordDecl *BaseRecord = nullptr;
----------------
safocl wrote:

simplified code:
```
CXXRecordDecl *BaseRecord;
if (LookupInDependent) {
        BaseRecord = nullptr;
      } else {
        BaseRecord = cast<CXXRecordDecl>(BaseSpec.getType()->getAsRecordDecl());
      }
```

https://github.com/llvm/llvm-project/pull/118003
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to