Fix exegesis build on aarch64-windows-msvc host

Include x86 intrinsics only when compiling for x86_64
or i386.  _MSC_VER no longer implies x86.

Reviewed By: gchatelet

Differential Revision: https://reviews.llvm.org/D96498
This commit is contained in:
Maxim Kuvyrkov 2021-02-12 09:47:37 +00:00
parent 9700228abc
commit 06f53f2f09
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
#include <memory>
#include <string>
#include <vector>
#if defined(_MSC_VER)
#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
#include <immintrin.h>
#include <intrin.h>
#endif