From: Tom Stellard Date: Tue, 25 Feb 2014 21:32:37 +0000 (-0800) Subject: clover: Fix build with LLVM 3.5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcd499730b225ec5a35902893c059086ba11b590;p=mesa.git clover: Fix build with LLVM 3.5 --- diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index e8266693bd0..cdf32b6e3fb 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -297,8 +297,10 @@ namespace { llvm::Argument &arg = *I; #if HAVE_LLVM < 0x0302 llvm::TargetData TD(kernel_func->getParent()); -#else +#elif HAVE_LLVM < 0x0304 llvm::DataLayout TD(kernel_func->getParent()->getDataLayout()); +#else + llvm::DataLayout TD(mod); #endif llvm::Type *arg_type = arg.getType();