From: Roman Divacky Date: Tue, 4 Mar 2014 18:26:12 +0000 (+0000) Subject: The wmmintrin.h header includes two different sub-headers: one for AES support X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d04da7e31f55261849c2c349c9973492a2709cd;p=clang The wmmintrin.h header includes two different sub-headers: one for AES support and one for PCLMUL support. The current immintrin.h header only includes wmmintrin.h if AES support is enabled. It should include it if either AES or PCLMUL is enabled (GCC's version of immintrin.h does this). Patch by John Baldwin! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202871 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/immintrin.h b/lib/Headers/immintrin.h index 15d6e05f97..df4bea8c95 100644 --- a/lib/Headers/immintrin.h +++ b/lib/Headers/immintrin.h @@ -48,7 +48,7 @@ #include #endif -#if defined (__AES__) +#if defined (__AES__) || defined (__PCLMUL__) #include #endif