clover: Use correct LLVM version in #if for DataLayout construction
Spotted by Michel Dänzer.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user