summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-03-09 09:24:09 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-03-09 09:24:09 +0000
commit845976941bf8cd7bfdd6672d614ac73cd02286c3 (patch)
tree8ca99a0657fc1ee8346eab4a716339e844992a83
parentb975518f285fd4065babb7573636585056f2fc2b (diff)
gallium/gallivm: remove unused header include for newer LLVM
From Jan Zielinski 52aa730d07618513d6c055618069b2f4680974cc in mainline Mesa Encountered by naddy@ when doing a clang 11 build. This commit suggested by patrick@
-rw-r--r--lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 40cc96824..df7196190 100644
--- a/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/lib/mesa/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -65,7 +65,9 @@
#include <llvm/Support/TargetSelect.h>
+#if LLVM_VERSION_MAJOR < 11
#include <llvm/IR/CallSite.h>
+#endif
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Module.h>
#include <llvm/Support/CBindingWrapping.h>