From 7e144ace95bc0727301c02ff19f5aa278277f133 Mon Sep 17 00:00:00 2001 From: Mike Lothian Date: Sun, 1 Apr 2018 01:32:20 +0100 Subject: [PATCH] ac/nir: Fix include for LLVMAddPromoteMemoryToRegisterPass MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/amd/vulkan/radv_nir_to_llvm.c | 3 +++ 1 file changed, 3 insertions(+) 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" -- 2.30.2