From: Mike Lothian Date: Sun, 1 Apr 2018 00:32:21 +0000 (+0100) Subject: radeonsi: Fix include for LLVMAddPromoteMemoryToRegisterPass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e078813053b00958a680b53e3e6b2c115fae7fa;p=mesa.git radeonsi: 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/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c index 79fdebe8388..622fd269509 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -40,6 +40,9 @@ #include #include #include +#if HAVE_LLVM >= 0x0700 +#include +#endif enum si_llvm_calling_convention { RADEON_LLVM_AMDGPU_VS = 87,