summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-03-04 10:22:59 -0500
committerTom Stellard <thomas.stellard@amd.com>2014-03-04 16:22:09 -0500
commit262e15fdd401d72045c37a7877efdec1038edec8 (patch)
tree0d6ea886c420514a3ff1e5b0979080510150924a /src/gallium/state_trackers
parent1dd84357ec8d6894ec6bbd7040a8e8328015cd16 (diff)
downloadexternal_mesa3d-262e15fdd401d72045c37a7877efdec1038edec8.zip
external_mesa3d-262e15fdd401d72045c37a7877efdec1038edec8.tar.gz
external_mesa3d-262e15fdd401d72045c37a7877efdec1038edec8.tar.bz2
clover: Use correct LLVM version in #if for DataLayout construction
Spotted by Michel Dänzer.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/clover/llvm/invocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index cdf32b6..a9ac83b 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -297,7 +297,7 @@ namespace {
llvm::Argument &arg = *I;
#if HAVE_LLVM < 0x0302
llvm::TargetData TD(kernel_func->getParent());
-#elif HAVE_LLVM < 0x0304
+#elif HAVE_LLVM < 0x0305
llvm::DataLayout TD(kernel_func->getParent()->getDataLayout());
#else
llvm::DataLayout TD(mod);