From: Mike Lothian Date: Sun, 1 Apr 2018 00:32:22 +0000 (+0100) Subject: gallivm: Fix include for LLVMAddPromoteMemoryToRegisterPass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bdbe4583fa031e130731de9e6bdbf767f89a1e5;p=mesa.git gallivm: 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/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index 6ddc509a813..dae9d01552a 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -40,6 +40,9 @@ #include #include +#if HAVE_LLVM >= 0x0700 +#include +#endif #include