[clang] [CIR] Add support for accessing members of base classes (PR #143195)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 6 13:14:34 PDT 2025
================
@@ -0,0 +1,69 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This contains code dealing with C++ code generation of classes
+//
+//===----------------------------------------------------------------------===//
+
+#include "CIRGenFunction.h"
+
+#include "clang/AST/RecordLayout.h"
+#include "clang/CIR/MissingFeatures.h"
+
+using namespace clang;
+using namespace clang::CIRGen;
+
+Address
+CIRGenFunction::getAddressOfBaseClass(Address value,
+ const CXXRecordDecl *derived,
+ CastExpr::path_const_iterator pathBegin,
----------------
erichkeane wrote:
This could also take a range, probably not a bad idea to do.
https://github.com/llvm/llvm-project/pull/143195
More information about the cfe-commits
mailing list