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

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


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

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



>From 40c455f25f64b5bf70adcbc5aaf563a382c5b6d7 Mon Sep 17 00:00:00 2001
From: David Stuttard <david.stuttard at amd.com>
Date: Thu, 27 Jun 2024 11:21:10 +0100
Subject: [PATCH] [Support] Fix llvm::xxh3_128bits for win 32 builds

#95863 caused build failures for Win32 builds.
This change includes the necessary include to fix it.
---
 llvm/lib/Support/xxhash.cpp | 3 +++
 1 file changed, 3 insertions(+)

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;



More information about the llvm-commits mailing list