[clang] [CIR] Upstream global initialization for ArrayType (PR #131657)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 18 11:22:10 PDT 2025


================
@@ -290,9 +378,23 @@ mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value,
     cgm.errorNYI("ConstExprEmitter::tryEmitPrivate member pointer");
     return {};
   }
-  case APValue::LValue:
-    cgm.errorNYI("ConstExprEmitter::tryEmitPrivate lvalue");
+  case APValue::LValue: {
+
+    if (value.getLValueBase()) {
----------------
AmrDeveloper wrote:

Yes, i think later we need to upstreaming ConstantLValueEmitter and also implement the visitors

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


More information about the cfe-commits mailing list