From: Mike Lothian Date: Sun, 1 Apr 2018 00:32:20 +0000 (+0100) Subject: ac/nir: Fix include for LLVMAddPromoteMemoryToRegisterPass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e144ace95bc0727301c02ff19f5aa278277f133;p=mesa.git ac/nir: Fix include for LLVMAddPromoteMemoryToRegisterPass Include llvm-c/Transforms/Utils.h with the newest LLVM 7 Signed-of-by: Mike Lothian Reviewed-by: Samuel Pitoiset Tested-by: Dieter Nützel Signed-off-by: Marek Olšák --- diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index c6b4e8b5328..2f0864da462 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -32,6 +32,9 @@ #include #include #include +#if HAVE_LLVM >= 0x0700 +#include +#endif #include "sid.h" #include "gfx9d.h"