[clang] Reapply "[clang] Fix name lookup for dependent bases" (PR #118003)

via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 13 18:50:05 PDT 2026


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

this change makes an additional reinitialization in the else case

https://github.com/llvm/llvm-project/pull/118003


More information about the cfe-commits mailing list