clover: Fix build with LLVM 3.5

This commit is contained in:
Tom Stellard
2014-02-25 13:32:37 -08:00
parent d9b983519c
commit fcd499730b

View File

@@ -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();