[llvm-branch-commits] [clang] release/20.x: [SystemZ] Add header guard macros to vecintrin.h (#129170) (PR #129286)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Feb 28 10:53:17 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-x86
Author: None (llvmbot)
<details>
<summary>Changes</summary>
Backport ddaa5b3bfb2980f79c6f277608ad33a6efe8d554
Requested by: @<!-- -->uweigand
---
Full diff: https://github.com/llvm/llvm-project/pull/129286.diff
1 Files Affected:
- (modified) clang/lib/Headers/vecintrin.h (+5)
``````````diff
diff --git a/clang/lib/Headers/vecintrin.h b/clang/lib/Headers/vecintrin.h
index a14c39f9f7313..338ea51ce8863 100644
--- a/clang/lib/Headers/vecintrin.h
+++ b/clang/lib/Headers/vecintrin.h
@@ -7,6 +7,9 @@
*===-----------------------------------------------------------------------===
*/
+#ifndef _VECINTRIN_H
+#define _VECINTRIN_H
+
#if defined(__s390x__) && defined(__VEC__)
#define __ATTRS_ai __attribute__((__always_inline__))
@@ -12861,3 +12864,5 @@ vec_search_string_until_zero_cc(__vector unsigned int __a,
#error "Use -fzvector to enable vector extensions"
#endif
+
+#endif /* _VECINTRIN_H */
``````````
</details>
https://github.com/llvm/llvm-project/pull/129286
More information about the llvm-branch-commits
mailing list