[clang] [clang] Fix crash 'Cannot get layout of forward declarations' during CTU static analysis (PR #156056)
Balázs Kéri via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 1 00:35:56 PDT 2025
================
@@ -0,0 +1,43 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: split-file %s %t
+
+// RUN: %clang_cc1 -emit-pch -o %t/import.c.ast %t/import.c
+
+// RUN: %clang_extdef_map -- -x c %t/import.c >> %t/externalDefMap.txt
+// RUN: sed -i'' 's/$/.ast/' %t/externalDefMap.txt
----------------
balazske wrote:
Is it better to use the `perl` command from that page?
https://github.com/llvm/llvm-project/pull/156056
More information about the cfe-commits
mailing list