[clang] [Clang][Targets] Fix crash on ARM/AArch64 Windows EABI targets with virtual inheritance (PR #173846)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 5 07:27:41 PST 2026
================
@@ -0,0 +1,22 @@
+// RUN: %clang_cc1 -emit-llvm-only -triple armv7a-none-windows-eabi -fdump-record-layouts %s 2>/dev/null | FileCheck %s
+// RUN: %clang_cc1 -emit-llvm-only -triple thumbv7-none-windows-eabihf -fdump-record-layouts %s 2>/dev/null | FileCheck %s
+
+// Verify that ARM Windows with eabi environment correctly uses Microsoft
+// record layout for classes with virtual inheritance.
+// This is a regression test for a crash caused by incorrect record layout
+// selection when TheCXXABI is Microsoft but HasMicrosoftRecordLayout was false.
----------------
yxsamliu wrote:
better use new name for HasMicrosoftRecordLayout
https://github.com/llvm/llvm-project/pull/173846
More information about the cfe-commits
mailing list