[clang] [CIR] Add support for globals reference variables (PR #182608)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 20 16:19:21 PST 2026


================
@@ -0,0 +1,121 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o - | FileCheck %s --check-prefixes=CIR
----------------
andykaylor wrote:

It might be worth adding checks before lowering prepare is run, to verify the ctor region is created where expected (as is done in `global-ctor-dtor.cpp`).

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


More information about the cfe-commits mailing list