[clang] [X86] Update #error to mention the right header name (PR #207507)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 4 04:07:18 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-x86
Author: Kim Gräsman (kimgr)
<details>
<summary>Changes</summary>
Practically every internal intrinsics header has a little public/private check to force users to use public *intrin.h header names.
avx512vp2intersectintrin.h is the only one with a discrepancy between the #error directive and the actual filename.
Fix them to agree. No functional change expected.
---
Full diff: https://github.com/llvm/llvm-project/pull/207507.diff
1 Files Affected:
- (modified) clang/lib/Headers/avx512vp2intersectintrin.h (+1-1)
``````````diff
diff --git a/clang/lib/Headers/avx512vp2intersectintrin.h b/clang/lib/Headers/avx512vp2intersectintrin.h
index 7d999960a574b..f98e84031fc35 100644
--- a/clang/lib/Headers/avx512vp2intersectintrin.h
+++ b/clang/lib/Headers/avx512vp2intersectintrin.h
@@ -22,7 +22,7 @@
*===-----------------------------------------------------------------------===
*/
#ifndef __IMMINTRIN_H
-#error "Never use <avx512vp2intersect.h> directly; include <immintrin.h> instead."
+#error "Never use <avx512vp2intersectintrin.h> directly; include <immintrin.h> instead."
#endif
#ifndef _AVX512VP2INTERSECT_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/207507
More information about the cfe-commits
mailing list