From: Tom Stellard Date: Tue, 4 Mar 2014 15:22:59 +0000 (-0500) Subject: clover: Use correct LLVM version in #if for DataLayout construction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=262e15fdd401d72045c37a7877efdec1038edec8;p=mesa.git clover: Use correct LLVM version in #if for DataLayout construction Spotted by Michel Dänzer. --- 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);