diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-04-18 11:25:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 11:25:41 -0700 |
commit | 7c51e426159a7751b062e9860e1ec71cd8fc7bb7 (patch) | |
tree | fbadc12b67cb2719bad765a6ede0c8109592701c /clang/lib/CIR/CodeGen/CIRGenFunction.cpp | |
parent | 7cc4472037b43971bd3ee373fe75b5043f5abca9 (diff) | |
download | llvm-7c51e426159a7751b062e9860e1ec71cd8fc7bb7.zip llvm-7c51e426159a7751b062e9860e1ec71cd8fc7bb7.tar.gz llvm-7c51e426159a7751b062e9860e1ec71cd8fc7bb7.tar.bz2 |
[CIR] Upstream scalar support for ParenExpr (#136332)
This change adds support for handling ParenExpr in scalar expressions. A
few more places will need to be updated after structure assignment and
complex type support is in place.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenFunction.cpp')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp index 9dace72..76e9ca4 100644 --- a/clang/lib/CIR/CodeGen/CIRGenFunction.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenFunction.cpp @@ -515,6 +515,8 @@ LValue CIRGenFunction::emitLValue(const Expr *e) { return emitUnaryOpLValue(cast<UnaryOperator>(e)); case Expr::BinaryOperatorClass: return emitBinaryOperatorLValue(cast<BinaryOperator>(e)); + case Expr::ParenExprClass: + return emitLValue(cast<ParenExpr>(e)->getSubExpr()); case Expr::DeclRefExprClass: return emitDeclRefLValue(cast<DeclRefExpr>(e)); } |