[clang] [CIR] Refactor global variable emission and initialization (PR #138222)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Fri May 2 10:15:52 PDT 2025


================
@@ -46,6 +55,14 @@ class ConstantEmitter {
   ConstantEmitter(const ConstantEmitter &other) = delete;
   ConstantEmitter &operator=(const ConstantEmitter &other) = delete;
 
+  ~ConstantEmitter();
+
+  /// Try to emit the initiaizer of the given declaration as an abstract
----------------
AmrDeveloper wrote:

nit

```suggestion
  /// Try to emit the initializer of the given declaration as an abstract
```


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


More information about the cfe-commits mailing list