Mesa (master): clover: Add missing include for llvm-12 build fix

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 2 19:41:15 UTC 2021


Module: Mesa
Branch: master
Commit: f0dccd957879ff642cfd921dda6e8b04dd35fec4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f0dccd957879ff642cfd921dda6e8b04dd35fec4

Author: Karol Herbst <kherbst at redhat.com>
Date:   Tue Mar  2 20:09:39 2021 +0100

clover: Add missing include for llvm-12 build fix

Fixes: d1eab2b1eb1 ("clover: Fix build with llvm-12.")
Signed-off-by: Karol Herbst <kherbst at redhat.com>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9372>

---

 src/gallium/frontends/clover/llvm/compat.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/frontends/clover/llvm/compat.hpp b/src/gallium/frontends/clover/llvm/compat.hpp
index d537819f292..380d16a8346 100644
--- a/src/gallium/frontends/clover/llvm/compat.hpp
+++ b/src/gallium/frontends/clover/llvm/compat.hpp
@@ -49,6 +49,7 @@
 
 #include <clang/Basic/TargetInfo.h>
 #include <clang/Frontend/CompilerInstance.h>
+#include <clang/Lex/PreprocessorOptions.h>
 
 #if LLVM_VERSION_MAJOR >= 10
 #include <llvm/Support/CodeGen.h>



More information about the mesa-commit mailing list