[clang] [CIR] Upstream ArraySubscriptExpr for fixed size array (PR #134536)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 7 06:24:34 PDT 2025


================
@@ -232,6 +233,161 @@ LValue CIRGenFunction::emitUnaryOpLValue(const UnaryOperator *e) {
   llvm_unreachable("Unknown unary operator kind!");
 }
 
+/// If the specified expr is a simple decay from an array to pointer,
+/// return the array subexpression.
+/// FIXME: this could be abstracted into a commeon AST helper.
----------------
erichkeane wrote:

```suggestion
/// FIXME: this could be abstracted into a common AST helper.
```

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


More information about the cfe-commits mailing list