From fe00f1659bfcd6b5bf42f20760d8f64ab47db3cb Mon Sep 17 00:00:00 2001 From: Ben Barham Date: Fri, 6 Sep 2024 16:23:53 -0700 Subject: [PATCH] [Support] Include `intrin.h` for MSVC intrinsics in `xxhash.cpp` `__umulh` added in https://github.com/llvm/llvm-project/pull/95863 requires `intrin.h`, make sure to include it. --- llvm/lib/Support/xxhash.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/lib/Support/xxhash.cpp b/llvm/lib/Support/xxhash.cpp index cdb76d57e2c1d..81e1bff426b3e 100644 --- a/llvm/lib/Support/xxhash.cpp +++ b/llvm/lib/Support/xxhash.cpp @@ -60,6 +60,10 @@ #include #endif +#if defined(_MSC_VER) +#include +#endif + using namespace llvm; using namespace support;