[clang] [clang] Fix a segfault when M is a nullptr (PR #130712)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 14 00:50:18 PDT 2025
================
@@ -0,0 +1,35 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: split-file %s %t
+
+// There are two requirements here to result in the owner of a macro being null.
+// 1) There must be a configuration mismatch between a header and a file it depends on
+// 2) -fmodules-local-submodule-visibility must be enabled.
+
+// Unfortunately, libcxx is compiled with exceptions, but the sysroot it depends on is likely compiled without exceptions.
----------------
cor3ntin wrote:
The comment is not relevant to the test; can you remove it?
https://github.com/llvm/llvm-project/pull/130712
More information about the cfe-commits
mailing list