From: Jan Zielinski Date: Mon, 27 Apr 2020 11:34:59 +0000 (+0200) Subject: gallium/gallivm: remove unused header include for newer LLVM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52aa730d07618513d6c055618069b2f4680974cc;p=mesa.git gallium/gallivm: remove unused header include for newer LLVM In the top of the trunk LLVM (11) llvm/IR/CallSite.h header has been removed. The file compiles without this include also for LLVM 8, but I'm not sure about 9, 10, and older versions so I disable it only for the latest LLVM Reviewed-by: Roland Scheidegger Part-of: --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp index 40cc96824f3..df7196190c5 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -65,7 +65,9 @@ #include +#if LLVM_VERSION_MAJOR < 11 #include +#endif #include #include #include