[llvm] [Support] Fix llvm::xxh3_128bits for win 32 builds (PR #96891)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 03:25:24 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: David Stuttard (dstutt)

<details>
<summary>Changes</summary>

#<!-- -->95863 caused build failures for Win32 builds.
This change includes the necessary include to fix it.



---
Full diff: https://github.com/llvm/llvm-project/pull/96891.diff


1 Files Affected:

- (modified) llvm/lib/Support/xxhash.cpp (+3) 


``````````diff
diff --git a/llvm/lib/Support/xxhash.cpp b/llvm/lib/Support/xxhash.cpp
index a0803297555ce..8e1763809bf01 100644
--- a/llvm/lib/Support/xxhash.cpp
+++ b/llvm/lib/Support/xxhash.cpp
@@ -46,6 +46,9 @@
 #include "llvm/Support/Endian.h"
 
 #include <stdlib.h>
+#if defined(_MSC_VER) && defined(_M_IX86)
+#include <intrin.h>
+#endif
 
 using namespace llvm;
 using namespace support;

``````````

</details>


https://github.com/llvm/llvm-project/pull/96891


More information about the llvm-commits mailing list