[clang] [clang][CodeGen] Fix a crash caused by inconsistent addrspace (PR #236752)

Ben Shi via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 29 20:19:48 PDT 2026


================
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -triple avr -target-cpu atmega328 -emit-llvm -x c++ < %s | FileCheck --allow-empty %s
+
+// This test case verifies https://github.com/llvm/llvm-project/issues/236285 .
+
+struct A {};
+struct B : A {
+  ~B();
+};
+
+B::~B() {}
+
+struct C : B {
+  ~C();
+};
+
+C::~C() {}
+
+// CHECK: {{.*}} alias void (ptr), ptr
----------------
benshi001 wrote:

Thanks. I have fixed..

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


More information about the cfe-commits mailing list