summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2014-03-04 10:22:59 -0500
committerTom Stellard <[email protected]>2014-03-04 16:22:09 -0500
commit262e15fdd401d72045c37a7877efdec1038edec8 (patch)
tree0d6ea886c420514a3ff1e5b0979080510150924a /src
parent1dd84357ec8d6894ec6bbd7040a8e8328015cd16 (diff)
clover: Use correct LLVM version in #if for DataLayout construction
Spotted by Michel Dänzer.
Diffstat (limited to 'src')
-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 cdf32b6e3fb..a9ac83b8999 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);