From 262e15fdd401d72045c37a7877efdec1038edec8 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 4 Mar 2014 10:22:59 -0500 Subject: clover: Use correct LLVM version in #if for DataLayout construction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spotted by Michel Dänzer. --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/clover') 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); -- cgit v1.2.3