aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
diff options
context:
space:
mode:
authorAndy Kaylor <akaylor@nvidia.com>2025-04-22 13:36:27 -0700
committerGitHub <noreply@github.com>2025-04-22 13:36:27 -0700
commit21bc23e35efa6f285402c299e2991a8e991164cc (patch)
tree0e204f04dc186d20996f0c0b1505933b2b8310cb /clang/lib/CIR/CodeGen/CIRGenFunction.cpp
parent89a792e4e3f0464d071e71db0fd14d01e4aff971 (diff)
downloadllvm-21bc23e35efa6f285402c299e2991a8e991164cc.zip
llvm-21bc23e35efa6f285402c299e2991a8e991164cc.tar.gz
llvm-21bc23e35efa6f285402c299e2991a8e991164cc.tar.bz2
[CIR] Upstream support for accessing structure members (#136383)
This adds ClangIR support for accessing structure members. Access to union members is deferred to a later change.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenFunction.cpp')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenFunction.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
index 76e9ca4..5412f9f 100644
--- a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp
@@ -513,6 +513,8 @@ LValue CIRGenFunction::emitLValue(const Expr *e) {
return emitArraySubscriptExpr(cast<ArraySubscriptExpr>(e));
case Expr::UnaryOperatorClass:
return emitUnaryOpLValue(cast<UnaryOperator>(e));
+ case Expr::MemberExprClass:
+ return emitMemberExpr(cast<MemberExpr>(e));
case Expr::BinaryOperatorClass:
return emitBinaryOperatorLValue(cast<BinaryOperator>(e));
case Expr::ParenExprClass: